dotnet-bump-version
2.0.1
See the version list below for details.
dotnet add package dotnet-bump-version --version 2.0.1
NuGet\Install-Package dotnet-bump-version -Version 2.0.1
<PackageReference Include="dotnet-bump-version" Version="2.0.1" />
<PackageVersion Include="dotnet-bump-version" Version="2.0.1" />
<PackageReference Include="dotnet-bump-version" />
paket add dotnet-bump-version --version 2.0.1
#r "nuget: dotnet-bump-version, 2.0.1"
#:package dotnet-bump-version@2.0.1
#addin nuget:?package=dotnet-bump-version&version=2.0.1
#tool nuget:?package=dotnet-bump-version&version=2.0.1
dotnet-bump-version
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 project.json 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.
Whats new in v 2.0.0
- Upgraded to dotnet 6.0
- Interface for command line is upgraded to
System.CommandLine, for pretty command line options - Solution file support added, use
--slnoption with.slnfile and it will update all available.csprojfiles Version,AssemblyVersionandFileVersionis now searched and updated in.csprojfileDockersupport added, can be handy to be used inCI/CDpipelines
Usage
Version 2.0.0
D:\Checkout\dotnet-bump\src\dotnet-bump\bin\Debug\net6.0>dotnet dotnet-bump-version.dll
Required argument missing for command: 'dotnet-bump-version'.
Description:
Command line tool for version bump of dotnet applications v 2.0.0.0
Usage:
dotnet-bump-version <part> [options]
Arguments:
<part> The part of version to be updated, supported values are major, minor, patch, revision.
Options:
--csproj <csproj> The path to C# project (.csproj) file.
--sln <sln> The path to solution (.sln) file.
--version Show version information
-?, -h, --help Show help and usage information
Older versions
Add dotnet bump as a tool to your project by including the following into your .csproj:
<Project Sdk="Microsoft.NET.Sdk">
<ItemGroup>
<DotNetCliToolReference Include="dotnet-bump-2" Version="1.2.0" />
</ItemGroup>
</Project>
Run dotnet restore to fetch bump-version binaries, after that you may use dotnet bump-version command to maintain version.
The command will increment a part of the version number of your .csproj according to the argument passed to it (major, minor, patch or revision).
When this argument is ommited, the revision number is bumped. You may specify path to .csproj on the command line as nameless argument or rely on automatic discovery which would look for first .csproj file in the current directory.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 is compatible. net5.0-windows was computed. 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. |
| .NET Core | netcoreapp3.1 is compatible. |
-
.NETCoreApp 3.1
- Microsoft.Build (>= 17.3.1)
- Microsoft.VisualStudio.Azure.Containers.Tools.Targets (>= 1.17.0)
- System.CommandLine (>= 2.0.0-beta4.22272.1)
-
net5.0
- Microsoft.Build (>= 17.3.1)
- Microsoft.VisualStudio.Azure.Containers.Tools.Targets (>= 1.17.0)
- System.CommandLine (>= 2.0.0-beta4.22272.1)
-
net6.0
- Microsoft.Build (>= 17.3.1)
- Microsoft.VisualStudio.Azure.Containers.Tools.Targets (>= 1.17.0)
- System.CommandLine (>= 2.0.0-beta4.22272.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.