【发布时间】:2013-10-18 14:22:03
【问题描述】:
自从我最新的 Windows 更新(系统还原无法撤消)以来,我无法使用 Visual Studio 2010 加载任何项目。该项目显示为灰色(不可用),当我尝试重新加载它们时出现错误:
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.
我尝试创建新项目:同样的错误
我尝试创建不同类型的项目(命令提示符、silverlight、windows phone):同样的错误
删除 .suo 和 .user 文件并没有改变任何东西
我没有移动项目
在 Windows Vista 中使用 Visual Studio 2010
【问题讨论】:
-
看起来你的 GAC 搞砸了。您可以尝试卸载并重新安装 .NET 4.0
-
成功了! (实际上只需要修复)。编辑:看起来我不能将评论标记为答案:S
-
很高兴就这么简单。我已经把它作为答案,所以也许其他有同样问题的人可以找到它
标签: visual-studio-2010 windows-update microsoft.build