Skip to content

Dotnet tool for updating packages automatically

License

Notifications You must be signed in to change notification settings

credfeto/UpdatePackages

Repository files navigation

UpdatePackages

Command line tool for updating nuget packages across a solution/folder which can be scripted as part of an automated build.

Build Status

Branch Status
main Build: Pre-Release
release Build: Release

Release Notes

See CHANGELOG.md for release notes.

Installation

Install as a global tool

dotnet tool install Credfeto.Package.Update

To update to latest released version

dotnet tool update Credfeto.Package.Update

Install as a local tool

dotnet new tool-manifest
dotnet tool install Credfeto.Package.Update --local

To update to latest released version

dotnet tool update Credfeto.Package.Update --local

Usage

Updating packages

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

Update a specific package

dotnet updatepackages --folder D:\Source --package-id Credfeto.Extensions.Configuration.Typed

Update all packages that start with a prefix

dotnet updatepackages --folder D:\Source --package-id Credfeto.Extensions:prefix

Update all packages that start with a prefix, excluding a specific packages

dotnet updatepackages --folder D:\Source --package-id Credfeto.Extensions:prefix --exclude Credfeto.Extensions.Configuration.Json Credfeto.Extensions.Configuration.Typed

Add an additional package source

dotnet updatepackages --folder D:\Source --package-id Credfeto.Extensions:prefix --source https://nuget.example.org/api/v3/index.json

Contributors

About

Dotnet tool for updating packages automatically

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages