Skip to content
This repository was archived by the owner on Sep 16, 2018. It is now read-only.
Paul Trampert edited this page Nov 6, 2016 · 2 revisions

Welcome to the dotnet-version wiki!

Basic Usage

Include this in the tools section of your project.json. It's available via nuget:

{
  "tools": {
    "dotnet-version": "1.1.0"
  }
}

From the project's directory, the dotnet command "version" is now available (dotnet version).

Usage:  [options] [command]

Options:
  -? | -help  Show help information

Commands:
  read
  set

Commands

Set

Sets the version of the project.json in the current directory.

Usage:  set [options]

Options:
  --new-version  If specified, the new version to set in the project.json. Version must be in semver format (major.minor.patch).
  --env-var      If specified, the environment variable contianing the new version. Version must be in semver format (major.minor.patch).
  -? | -help     Show help information

Read

Prints the version in the project.json of the current directory.

Usage:  read [options]

Options:
  -? | -help  Show help information

Clone this wiki locally