Skip to content

pha3l/Pha3l.DotBump

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pha3l.DotBump

DotBump is a utility for managing the version for a .NET Core project according to semver.
It's useful for projects that are published to a NuGet feed.

Installation

DotBump is a global cli tool, and can be installed as such:

$ dotnet tool install -g Pha3l.DotBump

Usage

There's not much to it at the moment. There are three actions supported.

Init

Creates a new .version file at the current working directory with initial version 1.0.0

$ dotbump init

Bump

Bump the major version

$ cat .version # => 1.0.0
$ dotbump bump major
$ cat .version # => 2.0.0

major can be replaced with minor or patch to bump the corresponding semver component

Miscellaneous

Once you have the .version file, it can be used with dotnet pack or other tools to specify the version. I'm using it like this:

$ dotnet pack /p:Version=$(cat .version)

This, unlike having the version hardcoded in the .csproj, allows easily writing a shell script that will bump the patch version before pushing a new version to a NuGet feed.

About

A small dotnet cli global tool to manage version information for .net core projects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages