dotnet version cli (similar to npm version cli)
This is a maintenance release
stderr
for better ci behavior (see #35)Thanks to @eduherminio for providing the fixes.
v1.1.0 and this is a maintenance release that updates the dotnet runtime targeting so it can be installed on machines with the following SDKs:
See #31 and #30 for further details.
This is a minor improvement to the tool where the help text
will be shown in case of a known exception being thrown - to assist the user in exploring what the tool can do.
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
This is a feature release that adds a --dry-run
cli switch which will disable updating the csproj file and therefore also disable vcs changes.
The intended new version will be output to standard out.
This is a feature release that adds support for netcoreapp 1.1
and 2.0
which means that this package should become available for install on additional platforms, like Ubuntu 17.04 that only supports dotnet core 2.0
Support JSON output when just dumping the current version of a csproj file.
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.
This is a recovery release that allows you to bump your versions beyond 10 in the major
, minor
or patch
segments - sorry about that! :)
This release brings support for supplying the version that should go into the .csproj
file - look in the README for examples