Can I upgrade the Nuget tool-only package through the command line?
By “tools-only” is meant a package that does not contain the “lib” or “content” folder (as defined on the Nuget website) and contains scripts or tools, not the libraries referenced by Visual Studio Projects. Typical use for tools that aid in assembly processes.
I can add tool-only packages in Visual Studio by managing Nuget packages at the Solution level. This will download the package correctly and also allow me to see and install updates for it.
But I was not able to get the “update” command on the “nuget.exe” command line to update the package. It seems to output all updates from the project files ... but the package does not reference the project, because it is not a code library.
I understand that the focus of Nuget is on code libraries, but doco mentions tool packages ... Given that this can be done in Visual Studio, I would have thought it should be possible on the command line.
eg.
- Toolkit "A" (no lib library, just tools)
- In VS in project "B", manage the Nuget packages on the solution and install A
- (download and create the ".nuget" folder with package.config)
- Release New Version "A"
VS, .