2017-04-23 24 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に似ていますが、私はウィこれは私には当てはまらないようです。

csprojファイルの内容:

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

私はnetstandard1.6にそれをアップグレードしようとしたが、それはどちらかの助けにはなりませんでした。

答えて

関連する問題