VS2015-项目的默认XML命名空间必须是MSBuild XML命名空间 [英] VS2015-The default XML namespace of the project must be the MSBuild XML namespace

查看:2461
本文介绍了VS2015-项目的默认XML命名空间必须是MSBuild XML命名空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在VS2015中将现有项目添加到我的源项目中,并且出现以下错误:

I am trying to add an existing project to my source project in VS2015, and I am getting the following error:

Visual Studio 2015-项目的默认XML命名空间必须是MSBuild XML命名空间.如果项目是以MSBuild 2003格式编写的,请添加 xmlns ="http://schemas.microsoft.com/developer/msbuild/2003".如果项目是以旧的1.0或1.2格式创作的,请从atat转换为MSBuild 2003.

Visual Studio 2015 - 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 fromat.

我该如何解决?

推荐答案

VS2015-项目的默认XML命名空间必须是MSBuild XML命名空间.

VS2015-The default XML namespace of the project must be the MSBuild XML namespace.

您可以使用Visual Studio 2015打开新的.Net Core csproj格式,应该使用支持这种新格式的 Visual Studio 2017 来打开项目.

You may open the new .Net Core csproj format with Visual Studio 2015, you should use Visual Studio 2017 which supports this new format to open your project.

要对其进行测试,我使用Visual Studio 2017创建了一个.net核心项目,然后使用Visual Studio 2015打开了该项目,然后我遇到了相同的错误:

To test it, I created a .net core project with Visual Studio 2017, then open it with Visual Studio 2015, then I got the same error with you:

因此,请尝试使用Visual Studio 2017打开它.

So please try to open it with Visual Studio 2017.

请参见类似的问题了解更多详细信息.

See similar issue for some more details.

这篇关于VS2015-项目的默认XML命名空间必须是MSBuild XML命名空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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