我正在嘗試從命令行更新一些項目的nuget引用。這些項目使用包含PackageReference元素的新格式。我使用的命令是:使用新的csproj格式的nuget.exe更新
nuget.exe update someproj.csproj
這將導致一個錯誤:
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.
是否有某種方式使用nuget.exe或dotnet.exe更新包的命令行?
你有什麼版本的nuget.exe? –
nuget v 3.4.4.1321 – user653649