dotnet-updatr 2.0.1

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. Prefix Reserved
dotnet tool install --global dotnet-updatr --version 2.0.1
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local dotnet-updatr --version 2.0.1
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=dotnet-updatr&version=2.0.1
nuke :add-package dotnet-updatr --version 2.0.1

dotnet-updatr

Latest Nuget Version Latest Nuget Version

Dotnet tool for updating package reference and dotnet-tools.json.

The tool will try to stick to package versions that is supported by the projects target framework.

See UpdatR for SDK.

Installation

> dotnet tool install --global dotnet-updatr

Basic Usage

To update all *.csproj and dotnet-tools.json recursivly:

> update

If you only want to update the *.csproj and dotnet-tools.json that is part of a solution you can specifiy the solution directly:

> update path/to/solution.sln

You can also update a single *.csproj or dotnet-config.json:

> update path/to/example.csproj

If you want to preview the result you can do a dry run:

> update --dry-run

For larger solutions with multiple packages the console output is not optimal. You can choose to view the result in your default browser instead:

> update --browser

To update only one or more specific packages you can use the --package option:

> update --package Microsoft.* --package Newtonsoft.*

If you don't want to update a package or packages you can exclude them:

> update --exclude-package Microsoft.* --exclude-package Newtonsoft.*

As part of CI/CD

You can get the output as a markdown by setting a path for the output:

> update --output path/to/output/folder

It's possible to get the title and the rest of the output as separate .md-files which is helpful when creating a pull request:

> update --title path/to/title.md --description path/to/description.md

then you can use title.md as the title for your pull request and description.md as the body.

UpdatR is used to update it's own dependencies, have a look at Build.cs for an example that uses Bullseye and SimpleExec. However, if you are using C# in your CI/CD pipeline it's probably easier to just use UpdatR directly instead. That's the package that powers dotnet-updatr under the hood.

All options

Usage:
  update [<args>] [options]

Arguments:
  <args>  Path to solution or project(s). Defaults to current folder. Target can be a specific file or folder. If target is a folder then all *.csproj-files and dontet-config.json-files will be processed. [default: .]

Options:
  --package <package>                                                Package to update. Supports * as wildcard. Will update all unless specified. []
  --exclude-package <exclude-package>                                Package to exlude. Supports * as wildcard. []
  --output <output>                                                  Defaults to "output.md". Explicitly set to fileName.txt to generate plain text instead of markdown. []
  --title <title>                                                    Outputs title to path. []
  --description <description>                                        Outputs description to path. []
  --verbosity <Critical|Debug|Error|Information|None|Trace|Warning>  Log level. [default: Warning]
  --dry-run                                                          Do not save any changes. [default: False]
  --browser                                                          Open summary in browser. [default: False]
  --interactive                                                      Interaction with user is possible. [default: False]
  --version                                                          Show version information
  -?, -h, --help                                                     Show help and usage information

Icon

Package by Sergey Novosyolov from NounProject.com

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
2.0.1 3,408 1/30/2023
2.0.0 1,379 6/1/2022
1.2.5 558 4/26/2022
1.2.4 436 4/25/2022
1.2.3 483 4/11/2022
1.2.2 432 4/4/2022
1.2.1 470 3/31/2022
1.2.0 445 3/21/2022
1.1.1 490 3/7/2022
1.1.0 439 3/7/2022
1.0.0 411 3/6/2022
1.0.0-beta.4 124 3/6/2022
1.0.0-beta.3 110 3/6/2022
1.0.0-beta.2 109 3/4/2022
1.0.0-beta.1 128 3/3/2022
1.0.0-beta.0 116 3/1/2022
0.0.1-rc.1 123 2/27/2022
0.0.1-rc.0 113 2/25/2022
0.0.1-beta.6 123 2/25/2022
0.0.1-beta.5 107 2/25/2022
0.0.1-beta.4 104 2/25/2022
0.0.1-beta.3 113 2/24/2022
0.0.1-beta.2 114 2/23/2022
0.0.1-beta.1 116 2/22/2022
0.0.1-beta.0 127 2/22/2022
0.0.1-alpha.7 115 2/21/2022
0.0.1-alpha.5 122 2/21/2022

- bug: Tool might get stuck in an endless loop when using Directory.Build.props