Thursday, November 14, 2013

Predefined type 'System.Object' is not defined or imported

This is rarest of the rare error that comes when we build/debug solution in Visual Studio for .net . The problem is the missing MSCORLIB dll system.core which somehow not exists in .csproj file. The developer resort this by recreating new solution or clean the folder, get the latest code from TFS and then build it. But the problem sometimes lies as-is. One can take this to next level by locating this tag . if this is not present Add this. Forgot to mention, open this file in notepad rather VS IDE.

Then you rebuild the solution once again to get your ANIMAL(I mean your solution-which may have large number of class library in it) run.
Do post your comment if run into similar problem or please let me know the best way to get away with this one.

No comments :