DotNET: Difference between revisions
imported>Milahu m wording |
imported>Milahu XML namespace error: how to replace xbuild with msbuild |
||
Line 49: | Line 49: | ||
<blockquote> | <blockquote> | ||
xbuild tool is deprecated and will be removed in future updates, use msbuild instead | |||
<nowiki> | <nowiki> | ||
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 <Project> element. If the project has been authored in the old 1.0 or 1.2 format, please convert it to MSBuild 2003 format. | 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 <Project> element. If the project has been authored in the old 1.0 or 1.2 format, please convert it to MSBuild 2003 format. | ||
Line 54: | Line 56: | ||
</blockquote> | </blockquote> | ||
workaround: in <code>buildPhase</code>, replace <code>xbuild</code> with <code>msbuild</code> | |||
<syntaxHighlight lang=nix> | |||
{ lib | |||
# ... | |||
, msbuild | |||
}: | |||
buildDotnetPackage rec { | |||
# ... | |||
projectFile = "path/to/some_project.csproj"; | |||
# ... | |||
buildInputs = [ | |||
msbuild | |||
]; | |||
buildPhase = '' | |||
msbuild /p:Configuration=Release ${projectFile} | |||
''; | |||
} | |||
</syntaxHighlight> | |||
== missing NuGet packages == | == missing NuGet packages == |