dotnet-installer/src/dotnet
Jon Sequeira e8c5d23c29 display CommandParsingException gracefully (#5493)
* display CommandParsing gracefully

This set of changes handles CommandParsingException gracefuly (so as not to show the user a stack trace) and generalizes graceful exception display somewhat away from being type-specific.

* fix compile error by inlining constant

* remove unused test logging
2017-01-30 14:36:44 -08:00
..
CommandLine display CommandParsingException gracefully (#5493) 2017-01-30 14:36:44 -08:00
commands Merge branch 'rel/1.0.0' into dev/jgoshi/handleDeprecatedPJ 2017-01-26 20:46:56 -08:00
Properties Adding "BuildRid" to the CLI as a fallback RID to use when inferring which RID to use when building, running, and publishing self-contained applications. 2016-09-29 22:39:00 -05:00
xlf LOC CHECKIN | dotnet/cli | 20170116 2017-01-16 14:52:18 +01:00
CommonLocalizableStrings.cs Fixing an errant semicolon 2017-01-05 17:25:46 -08:00
dotnet.csproj netcoreapp1.1 fixes 2017-01-26 14:48:39 -08:00
DotNetCommandFactory.cs Hide restore output of first-run experience (#4740) 2016-11-28 00:46:26 -08:00
DotNetSubCommandBase.cs WIP Refactor and improve tests 2016-12-16 01:04:09 -08:00
DotNetTopLevelCommandBase.cs dotnet sln command (#5233) 2017-01-06 10:58:23 -10:00
ForwardingApp.cs [WIP] Removes *3 verbs, making msbuild the driver (#4456) 2016-10-27 18:46:43 -07:00
ICommandRunner.cs Fix tests 2016-08-26 18:14:04 -07:00
ITelemetry.cs Add performance tracing 2016-04-29 08:16:37 -07:00
MsbuildProject.cs Fixing on PR comments 2016-12-22 15:29:29 -08:00
MsbuildProjectExtensions.cs Implement dotnet add project (#5022) 2016-12-14 13:53:11 -10:00
MulticoreJitActivator.cs display CommandParsingException gracefully (#5493) 2017-01-30 14:36:44 -08:00
MulticoreJitProfilePathCalculator.cs Updating the xunit version to one that does not depend on internalabstractions. 2016-08-10 13:40:13 -07:00
NuGetForwardingApp.cs Merge Nuget changes 2016-08-26 17:23:33 -07:00
Program.cs display CommandParsingException gracefully (#5493) 2017-01-30 14:36:44 -08:00
ProjectExtensions.cs apply review feedback 2016-12-09 12:11:11 -08:00
ProjectGlobbingResolver.cs [WIP] Removes *3 verbs, making msbuild the driver (#4456) 2016-10-27 18:46:43 -07:00
ProjectInstanceExtensions.cs dotnet add uses ProjectTypeGuid or DefaultProjectTypeGuid (#5218) 2017-01-05 12:04:57 -10:00
README.md Fixed links in dotnet READMEs (#3642) 2016-06-22 15:19:10 -07:00
SlnFileExtensions.cs Address PR comments 2017-01-24 15:02:19 -08:00
SlnFileFactory.cs Improve error messages for why a solution failed to load (#5176) 2016-12-29 09:21:55 -10:00
SlnProjectCollectionExtensions.cs Address PR comments 2017-01-24 15:02:19 -08:00
SlnProjectExtensions.cs Address PR comments 2017-01-24 15:02:19 -08:00
Telemetry.cs Custom logger for MSBuild to receive telemetry events (#4551) 2016-10-31 16:16:39 -07:00

% DOTNET(1) % Microsoft Corporation dotnetclifeedback@microsoft.com % June 2016

NAME

dotnet -- General driver for running the command-line commands

SYNOPSIS

dotnet [--version] [--help] [--verbose] [--info] <command> [<args>]

DESCRIPTION

dotnet is a generic driver for the Command Line Interface (CLI) toolchain. Invoked on its own, it will give out brief usage instructions.

Each specific feature is implemented as a command. In order to use the feature, the command is specified after dotnet, such as dotnet build. All of the arguments following the command are its own arguments.

The only time dotnet is used as a command on its own is to run portable apps. Just specify a portable application DLL after the dotnet verb to execute the application.

OPTIONS

-v, --verbose

Enables verbose output.

--version

Prints out the version of the CLI tooling.

--info

Prints out more detailed information about the CLI tooling, such as the current operating system, commit SHA for the version, etc.

-h, --help

Prints out a short help and a list of current commands.

DOTNET COMMANDS

The following commands exist for dotnet:

  • dotnet-new
    • Initializes a C# or F# console application project.
  • dotnet-restore
    • Restores the dependencies for a given application.
  • dotnet-build
    • Builds a .NET Core application.
  • dotnet-publish
    • Publishes a .NET portable or self-contained application.
  • dotnet-run
    • Runs the application from source.
  • dotnet-test
    • Runs tests using a test runner specified in the project.json.
  • dotnet-pack
    • Creates a NuGet package of your code.

EXAMPLES

dotnet new

Initializes a sample .NET Core console application that can be compiled and run.

dotnet restore

Restores dependencies for a given application.

dotnet compile

Compiles the application in a given directory.

dotnet myapp.dll

Runs a portable app named myapp.dll.

ENVIRONMENT

DOTNET_PACKAGES

The primary package cache. If not set, it defaults to $HOME/.nuget/packages on Unix or %HOME%\NuGet\Packages on Windows.

DOTNET_SERVICING

Specifies the location of the servicing index to use by the shared host when loading the runtime.

DOTNET_CLI_TELEMETRY_OPTOUT

Specifies whether data about the .NET Core tools usage is collected and sent to Microsoft. true to opt-out of the telemetry feature (values true, 1 or yes accepted); otherwise, false (values false, 0 or no accepted). If not set, it defaults to false, that is, the telemetry feature is on.