NuGet 错误 NU5029

NuspecProperties should be in the form of 'key1=value1;key2=value2'.

问题

传递给 msbuild -t:pack -p:NuspecFile=project.nuspec 命令的属性的格式不正确,因此无法分析。

解决方案

请使用 -p:NuspecProperties 并以 key=value 格式传递所有 nuspec 属性。 例如 msbuild -t:pack -p:NuspecFile=project.nuspec -p:NuspecProperties="configuration=release"