dotnet-bump-version 2.0.1

There is a newer version of this package available.
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
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="dotnet-bump-version" Version="2.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add dotnet-bump-version --version 2.0.1
#r "nuget: dotnet-bump-version, 2.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install dotnet-bump-version as a Cake Addin
#addin nuget:?package=dotnet-bump-version&version=2.0.1

// Install dotnet-bump-version as a Cake Tool
#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 --sln option with .sln file and it will update all available .csproj files
  • Version, AssemblyVersion and FileVersion is now searched and updated in .csproj file
  • Docker support added, can be handy to be used in CI/CD pipelines

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 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. 
.NET Core netcoreapp3.1 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.2 1,996 11/18/2022
2.0.1 249 10/11/2022
1.3.0 6,822 11/29/2017
1.2.0 1,098 7/10/2017