Releases: skarpdev/dotnet-version-cli
v2.0.0
This is a new major release of the tool bringing in many improvements, and one breaking change. Thanks to @eduherminio for reporting issues and testing the pre-release versions.
All new usages introduced are documented in the readme.
new features
- add support for pre-release handling, including build-meta and prefixes (see #38, #39, #41, #42, #43, #44)
- add dotnet 5.0 target to allow usage on dotnet 5.0 build images (see #62)
breaking change
- break handling of version numbers. The previous version number matcher was not strictly semver 2.0, it is now due to pre-release handling. This will probably affect very few people.
bugfixes
- fix whitespace preservation when patching csproj files (see #45 & #53)
- fix typo in exception message (see #55)
improvements
v1.1.2
v1.1.1
v1.0.1
v1.0.0 - dotnet global tool
With this version the dotnet-version-cli
moves away from a cli tool that is installed on a csproj file and becomes a standalone dotnet 2.1 global tool.
Thanks to @mikey0000 for the initial work on making this happen!
First upgrade your dotnet SDK to at least 2.1.301
and then install the tool by:
dotnet tool install -g dotnet-version-cli
Now you can use the tool everywhere on your machine with dotnet version
.
Support for passing in the csproj file to work on has also been baked in:
dotnet version --project-file=./src/my.csproj minor
To bump the given csproj
file with minor
v0.7.0
v0.5.0
v0.4.1
v0.4.0
This is a feature release that allows you to specify which format to return output in, when the app runs successfully.
So an example invocation on a project in version 1.2.1
with a minor update and json output (prettified here for readability, ugly json is actually returned):
λ dotnet version --output-format=json minor
{
"product": {
"name": "dotnet-version-cli",
"version": "0.4.0"
},
"oldVersion": "1.2.1",
"newVersion": "1.3.0",
"projectFile": "C:\\your\\stuff\\project.csproj",
"versionStrategy": "minor"
}
The product
bit is information about the version cli it self, the rest is about your project and how it was changed.
If you don't specify an output-format
the default behavior is preserved which is just writing normal text to standard out.