Command line tool for updating nuget packages across a solution/folder which can be scripted as part of an automated build.
Branch | Status |
---|---|
main | |
release |
See CHANGELOG.md for release notes.
dotnet tool install Credfeto.Package.Update
To update to latest released version
dotnet tool update Credfeto.Package.Update
dotnet new tool-manifest
dotnet tool install Credfeto.Package.Update --local
To update to latest released version
dotnet tool update Credfeto.Package.Update --local
Note the tool returns a non-zero exit code if any packages are updated.
Also provides in the output the packages that were updated in the format below so that scripts can read the output and take action.
::set-env name=PackageId::Version
e.g:
::set-env name=Credfeto.Extensions.Configuration.Typed::1.2.3.4
::set-env name=Credfeto.Extensions.Caching::3.4.5.6
dotnet updatepackages --folder D:\Source --package-id Credfeto.Extensions.Configuration.Typed
dotnet updatepackages --folder D:\Source --package-id Credfeto.Extensions:prefix
dotnet updatepackages --folder D:\Source --package-id Credfeto.Extensions:prefix --exclude Credfeto.Extensions.Configuration.Json Credfeto.Extensions.Configuration.Typed
dotnet updatepackages --folder D:\Source --package-id Credfeto.Extensions:prefix --source https://nuget.example.org/api/v3/index.json