Saturday, January 07, 2012 4:53 PM
After a recent project conversion all my references are broken in Visual Studio 2010.
I get the compiler error: "error CS0518: Predefined type 'System.Object' is not defined or imported"
My old projects seem to have no problems at all, here is a comparison of reference properties:
Reference list (broken): http://screensnapr.com/e/SnpYHQ.png
I've already tried running the repair utility and nothing has changed, I also tried referencing mscorlib since that was suggested somewhere else and that doesn't help, its particularly concerning because this seems to happen to every new project I create, meaning Visual Studio 2010 is completely broken for me.
- Edited by s0beitofg0t Saturday, January 07, 2012 4:58 PM
Saturday, January 07, 2012 7:16 PMTry re-referencing. That is delete a refrence and add it back in again.
Saturday, January 07, 2012 10:04 PM
I tried that also, it didn't seem to have any effect.
after trying to compile older projects I found that even though the references were not invalid, on compile the same error occurs. I'm reinstalling VS2010 completely as well as .NET and whatever else I can think of right now.
Saturday, January 07, 2012 10:18 PM
Reinstalled, still no good at all.
Warning 1 The designer could not be shown for this file because none of the classes within it can be designed. 0
Warning 2 The referenced component 'System' could not be found.
Warning 3 The referenced component 'System.Core' could not be found.
Warning 4 The referenced component 'System.Xml.Linq' could not be found.
Warning 5 The referenced component 'System.Data.DataSetExtensions' could not be found.
Warning 6 The referenced component 'Microsoft.CSharp' could not be found.
Warning 7 The referenced component 'System.Data' could not be found.
Warning 8 The referenced component 'System.Deployment' could not be found.
Warning 9 The referenced component 'System.Drawing' could not be found.
Warning 10 The referenced component 'System.Windows.Forms' could not be found.
Warning 11 The referenced component 'System.Xml' could not be found.
Monday, January 09, 2012 9:24 AMModerator
Bad luck, I can’t see the figures, could send me those pictures to my email: firstname.lastname@example.org ?
Could you tell us which .Net framework version are you using before and now? If possible, please send me the project for me to reproduce this situation and find a solution.
MSDN Community Support | Feedback to us
Thursday, September 13, 2012 10:00 AM
Did anything ever come of this? I'm experiencing the same problems. Repair didn't fix the issue.
Searched the internet for hours but no luck.
All new projects seem to be broken, as well as all older projects :(