2017-04-23 119 views
1

我在Windows 10盒子上使用Visual Studio 2017社区。msbuild builderror for .net标准库

当我添加一个.NET标准库(只是默认编码),以我的解决方案的解决方案建立在Visual Studio就好了2017年

但是当我尝试建立使用 &“C的解决方案:\程序文件(x86)\的MSBuild \ 14.0 \斌\ msbuild.exe” C:_SOURCES \ MySolution \ MyProject的\ MyProject.csproj

我得到一个生成错误:

error MSB4041: The default XML namespace of the project must be the MSBuild XML namespace. If t he project is authored in the MSBuild 2003 format, please add xmlns="http://schemas.microsoft.com/developer/msbuild/2003" to the element. If the pro ject has been authored in the old 1.0 or 1.2 format, please convert it to MSBuild 2003 format

它类似于this bugreport但我在无线上ndows,所以这似乎并不适用于我。

的的csproj文件内容:

<Project Sdk="Microsoft.NET.Sdk"> 
    <PropertyGroup> 
    <TargetFramework>netstandard1.4</TargetFramework> 
    </PropertyGroup> 
</Project> 

我试图升级它netstandard1.6但这并没有帮助。

回答