NugetPackageUpgrader.Cli 0.1.0

dotnet tool install --global NugetPackageUpgrader.Cli --version 0.1.0
                    
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 NugetPackageUpgrader.Cli --version 0.1.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=NugetPackageUpgrader.Cli&version=0.1.0
                    
nuke :add-package NugetPackageUpgrader.Cli --version 0.1.0
                    

NugetPackageUpgrader

Summary

NugetPackageUpgrader is a .NET tool that helps you to upgrade your nuget package versions. Given a project file NugetPackageUpgrader will upgrade the version of the package, build a new package and then look for packages within your solution that depend on this package. On any project that has a dependency to the specified package NugetPackageUpgrader will update the reference and upgrade the project. This is done for all transitive dependencies.

How to use

nugetupgrader -p [YourPackageName]

-o, --output              The directory, where generated nuget packages arecopied to.

-s, --sln-path            The solution, that contain the packages that shouldbe upgraded.

-p, --project             Required. The project, that should be upgraded.

-v, --verbose             Enable verbose logging.

-r, --release-strategy    Choose the release strategy. Valid values: Prerelease, ReleaseMajor, ReleaseMinor, ReleasePatch

-c, --set-version         Set a custom version.

-d, --sln-directory       The directory to look for a solution file. Defaultsto the directory of execution.

--help                    Display this help screen.

--version                 Display version information.

Example

Lets assume the following dependency graph. BeforeUpgrade

After we run nugetupgrader -p ToUpgradeDependency -r ReleasePatch all dependencies and transitive dependencies are upgraded to the next patch version. Please note that SecondGradeDependency is upgraded from 1.0.0 to 1.0.2. This is because it is upgraded twice. We are working on a solution.

AfterUpgrade

Release Strategies

The -r option allows for different release strategies. Depending on the strategy the major, minor, patch or prerelease version is increased. When specifying the -c flag following a version number the specified projects version is set to that version. All transitive dependencies are upgraded using the -r strategy.

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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.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
0.1.0 485 3/19/2022
0.1.0-beta3 551 3/19/2022 0.1.0-beta3 is deprecated because it is no longer maintained.