【问题标题】:Visual Studio unable to read the project file (anymore)Visual Studio 无法读取项目文件(不再)
【发布时间】: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


【解决方案1】:

看起来全局程序集缓存 (GAC) 被搞砸了,或者更新可能对 Microsoft.Build 程序集文件本身做了一些事情。

尝试修复 .NET 4.0,如果不起作用,您可以尝试完全卸载并重新安装框架。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-05-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多