Вопрос

Ever since my latest windows update, (which system restore is failing to undo) I can't load any projects with visual studio 2010. The project are greyed out (unavailable) and when I try to reload them I get the error:

C:\Users\Benoit\Documents\Visual Studio 2010\Projects\Test123\Test123\Test123.csproj : error  : Unable to read the project file 'Test123.csproj'. Could not load file or assembly 'Microsoft.Build, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.

I tried creating new projects: same error

I tried creating different type of projects (command prompt, silverlight, windows phone): same error

Deleting the .suo and .user files did not change anything

I did not move the projects

Using Visual Studio 2010 with Windows Vista

Это было полезно?

Решение

It looks like the Global Assembly Cache (GAC) is messed up, or possibly the update has done something with the Microsoft.Build assembly file itself.

Try repairing .NET 4.0, and if that does not work you can try completely uninstalling and reinstalling the framework.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top