2017-04-23 4 views
1

Ich verwende Visual Studio 2017 Community auf einer Windows 10-Box.msbuild builderror für .net-Standardbibliothek

Wenn ich eine .net-Standardbibliothek (nur der Standard-Code) zu meiner Lösung hinzufügen baut die Lösung einfach gut in Visual Studio 2017.

Aber wenn ich versuche, die Lösung C mit &‘zu bauen: \ Program Files (x86) \ MSBuild \ 14.0 \ Bin \ msbuild.exe‘C: _SOURCES \ MySolution \ MyProject \ MyProject.csproj

ich erhalte einen Buildfehler:

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

Es sieht ähnlich aus wie this bugreport aber Ich bin auf wi Das scheint mir nicht zu gelten.

die csproj Dateiinhalt:

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

Ich habe versucht, ein Upgrade es netstandard1.6 aber das hat auch nicht geholfen.

Antwort

Verwandte Themen