Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/credfeto/updatepackages
Dotnet tool for updating packages automatically
https://github.com/credfeto/updatepackages
Last synced: about 1 month ago
JSON representation
Dotnet tool for updating packages automatically
- Host: GitHub
- URL: https://github.com/credfeto/updatepackages
- Owner: credfeto
- License: mit
- Created: 2018-05-23T14:03:40.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2024-10-29T12:38:20.000Z (2 months ago)
- Last Synced: 2024-10-29T15:04:16.034Z (2 months ago)
- Language: C#
- Homepage:
- Size: 3.95 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Codeowners: .github/CODEOWNERS
- Security: SECURITY.md
Awesome Lists containing this project
README
## 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](https://github.com/credfeto/UpdatePackages/actions/workflows/build-and-publish-pre-release.yml/badge.svg)](https://github.com/credfeto/UpdatePackages/actions/workflows/build-and-publish-pre-release.yml) |
| release | [![Build: Release](https://github.com/credfeto/UpdatePackages/actions/workflows/build-and-publish-release.yml/badge.svg)](https://github.com/credfeto/UpdatePackages/actions/workflows/build-and-publish-release.yml) |## Release Notes
See [CHANGELOG.md](CHANGELOG.md) for release notes.
## Installation
### Install as a global tool
```shell
dotnet tool install Credfeto.Package.Update
```To update to latest released version
```shell
dotnet tool update Credfeto.Package.Update
```### Install as a local tool
```shell
dotnet new tool-manifest
dotnet tool install Credfeto.Package.Update --local
```To update to latest released version
```shell
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
```shell
dotnet updatepackages --folder D:\Source --package-id Credfeto.Extensions.Configuration.Typed
```#### Update all packages that start with a prefix
```shell
dotnet updatepackages --folder D:\Source --package-id Credfeto.Extensions:prefix
```#### Update all packages that start with a prefix, excluding a specific packages
```shell
dotnet updatepackages --folder D:\Source --package-id Credfeto.Extensions:prefix --exclude Credfeto.Extensions.Configuration.Json Credfeto.Extensions.Configuration.Typed
```#### Add an additional package source
```shell
dotnet updatepackages --folder D:\Source --package-id Credfeto.Extensions:prefix --source https://nuget.example.org/api/v3/index.json
```## Contributors