views:

88

answers:

1

Anyone ever had this error when trying to build a solution in Visual Studio 2008?

It's driving me MAD! I've removed all the containing projects and re-added them, and it's still not letting me build or run the solution.

Any suggestions?

+1  A: 

If you open the solution file (SolutionName.sln) in a text editor you should a couple of lines something like these for each project:

Project("{FAE04EC0-301F-11D3-BF4B-00C04F89EFBC}") = "ProjectName", "ProjectName\ProjectName.csproj", "{6B887D8C-D874-4AB2-B2CC-3551DEA2CC83}"
EndProject

There may be more stuff in between those lines, or in this case they may corrupt in some way. If you can isolate the problem entry and remove it you may be able to resurrect the solution.

Colin Pickard
There's just the two named projects that I expected, and some global info, no extra project without a name...
Ed Woodcock
If you create a new solution and add the existing projects to that does it work?
Colin Pickard
No idea, how do you make a new SLN from scratch without starting with a project?
Ed Woodcock
http://www.smallworkarounds.net/2009/02/visual-studio-tips-tricks-3-how-to-open.html
Colin Pickard
or you can just open one of the project.csproj files in a new copy of VS and it will create a solution for it
Colin Pickard
nvm, fixed it: removing a project didn't remove the reference to the assembly from another project, this seems to confuse VS. Worst error message ever I think :D
Ed Woodcock
Yes, a very bad message!
Colin Pickard