Frogvall.DotnetBumpVersion
3.0.1
See the version list below for details.
dotnet tool install --global Frogvall.DotnetBumpVersion --version 3.0.1
dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local Frogvall.DotnetBumpVersion --version 3.0.1
#tool dotnet:?package=Frogvall.DotnetBumpVersion&version=3.0.1
nuke :add-package Frogvall.DotnetBumpVersion --version 3.0.1
Frogvall.DotnetBumpVersion
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 | Versions 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. |
This package has no dependencies.
netcore 3.1 release