所有Visual Studio 2013内部版本现在都失败了 [英] All Visual Studio 2013 builds are now failing

查看:374
本文介绍了所有Visual Studio 2013内部版本现在都失败了的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Visual Studio 2013中打开的每个项目现在突然给我以下错误:

Every single project I open in Visual Studio 2013 is now all of a sudden giving me the following error:

EverySingleProject.csproj:错误:项目的默认XML名称空间必须是MSBuild XML名称空间.如果项目是以MSBuild 2003格式编写的,请在元素中添加xmlns ="http://schemas.microsoft.com/developer/msbuild/2003".如果项目是使用旧的1.0或1.2格式编写的,请将该项目转换为MSBuild 2003格式. C:\ Program Files(x86)\ MSBuild \ 12.0 \ bin \ Microsoft.Common.CurrentVersion.targets

EverySingleProject.csproj : error : The default XML namespace of the project must be the MSBuild XML namespace. If the project is authored in the MSBuild 2003 format, please add xmlns="http://schemas.microsoft.com/developer/msbuild/2003" to the element. If the project has been authored in the old 1.0 or 1.2 format, please convert it to MSBuild 2003 format. C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets

这在文件中:

Project ToolsVersion ="12.0" DefaultTargets ="Build" xmlns ="http://schemas.microsoft.com/developer/msbuild/2003"

Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"

为什么会失败?

推荐答案

我已经有2天了.

救了我.

希望这会有所帮助.

幸运的是,解决方案很简单:

Fortunately the solution is simple:

  1. 在Windows资源管理器中,导航到项目
  2. 右键单击.cproj文件,选择属性",然后取消选中只读"复选框
  3. 在记事本中打开.cproj文件
  4. 在第2行上,将xmlns ="http://schemas.microsoft.com/developer/msbuild/2008"更改为 xmlns ="http://schemas.microsoft.com/developer/msbuild/2003"(注意 唯一的区别是我们将2008年更改为2003年)
  5. 保存更改
  6. 在Visual Studio中,右键单击(当前不可用)项目,然后选择重新加载项目"
  7. 该项目现在将正常加载,您可以继续生活
  1. In Windows Explorer navigate to the project
  2. Right Click on the .cproj file, select Properties, and un-check the "Read Only" checkbox
  3. Open up the .cproj file in Notepad
  4. On line 2 change xmlns="http://schemas.microsoft.com/developer/msbuild/2008" to xmlns="http://schemas.microsoft.com/developer/msbuild/2003" (notice this only difference is we changed 2008 to 2003)
  5. Save your changes
  6. In Visual Studio right click on the (currently unavailable) project and select "Reload Project"
  7. The project will now load normally and you can get on with your life

这篇关于所有Visual Studio 2013内部版本现在都失败了的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆