Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

System.Collection.Generic.RandomizedStringEqualityComparer is not a GenericTypeDefinition."

I am Getting "System.Collection.Generic.RandomizedStringEqualityComparer is not a GenericTypeDefinition.MakeGenericType may not be called on a type for which Type.IsGenericTypeDefinition is true." error while creating Visual C++ Win32 Console Application. enter image description here

This is the ScreenShot of that error.

like image 650
Rakesh Dagdi Avatar asked Oct 17 '25 07:10

Rakesh Dagdi


1 Answers

Rather than completely uninstalling, a better solution for this is to clear off the Component Model Cache in %USER_PATH%\AppData\Local\Microsoft\VisualStudio\11.0\ComponentModelCache.

After deleting the cache folder, just relaunch Visual Studio 2012 once again, and build your project.

Worked for me.

like image 143
Abhay Sibal Avatar answered Oct 19 '25 12:10

Abhay Sibal