问题
Given:
- To consume NuGet packages we use PackageReference in msbuild.
- To produce NuGet packages we use the
packmsbuild target. - To push NuGet packages we can use the
dotnet nuget pushcommand.
Plus nuget.exe does not seem to be installed by any of the standard build tooling.
So, what is its role?
Now, I suspect there are still simple chores we cannot do without it. For example, I noticed dotnet nuget push pushes nupkg into a flat file structure, so, if I want a hierarchical one I probably need to use nuget add. But I am not sure.
So, actually two questions:
- What is the role of nuget.exe in the new world?
- Is
nuget.exe addthe only way to publish a nuget package to a hierarchical source?
来源:https://stackoverflow.com/questions/53854425/i-am-confused-about-the-role-of-nuget-exe-in-the-world-where-its-functionality-i