Frogvall.DotnetBumpVersion 3.0.3

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

Frogvall.DotnetBumpVersion

NuGet Version and Downloads count

NuGet Download count

Originally a dotnet-cli command that bumps the version number of the current project. This is useful when working with multiple .NET Core projects placed in different solutions, referencing each other as NuGet packages. Use this command before dotnet pack to increment a specific part of the version number in your .csproj before pushing your project to your local NuGet feed. This ensures that NuGet will not fetch the package from cache, and all your .NET Core projects in different solutions can reference the latest compiled version.

Added in this fork is the possibility to set a specific part of the version to a set value, for example the id of your build pipeline.

Usage

Add Frogvall.DotnetBumpVersion as a tool to your project by running the following:

dotnet tool install Frogvall.DotnetBumpVersion --version 3.0.1

Then to bump a file run:

dotnet bump-version [major | minor | patch | revision] [-s] [-v value] [path-to-project-file].

Arguments:
      [major | minor | patch | revision] What part of the version to bump. (Mandatory)
      [path-to-project-file] Path to the .csproj file. (Optional)

Options:
      -s Use <VersionPrefix> instead <Version> tag to bump the version. (Optional)
      --value Bump version to a fixed value, instead of incrementing by 1. (Optional)

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  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. 
.NET Core netcoreapp3.1 is compatible. 
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
3.0.3 3,074 3/23/2020
3.0.1 485 3/17/2020

Just printout newVersion as result of running the tool. This way you can pipe the resulting version number to a variable or file.