A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet below:

dotnet command - .NET CLI

This article applies to: ✔️ .NET Core 3.1 SDK and later versions

Name

dotnet - The generic driver for the .NET CLI.

Synopsis

To get information about the available commands and the environment:

dotnet [--version] [--info] [--list-runtimes] [--list-sdks]

dotnet -h|--help

To run a command (requires SDK installation):

dotnet <COMMAND> [-d|--diagnostics] [-h|--help] [--verbosity <LEVEL>]
    [command-options] [arguments]

To run an application:

dotnet [--additionalprobingpath <PATH>] [--additional-deps <PATH>]
    [--fx-version <VERSION>]  [--roll-forward <SETTING>]
    <PATH_TO_APPLICATION> [arguments]

dotnet exec [--additionalprobingpath <PATH>] [--additional-deps <PATH>]
    [--depsfile <PATH>]
    [--fx-version <VERSION>]  [--roll-forward <SETTING>]
    [--runtimeconfig <PATH>]
    <PATH_TO_APPLICATION> [arguments]
Description

The dotnet command has two functions:

Options

Different options are available for:

Options for displaying environment information and available commands

The following options are available when dotnet is used by itself, without specifying a command or an application to run. For example, dotnet --info or dotnet --version. They print out information about the environment.

Prints out the version of the .NET SDK used by dotnet commands, which may be affected by a global.json file. Available only when the SDK is installed.

Options for running a command

The following options are for dotnet with a command. For example, dotnet build --help or dotnet build --verbosity diagnostic.

Options for running an application

The following options are available when dotnet runs an application. For example, dotnet --roll-forward Major myapp.dll.

Options for running an application with the exec command

The following options are available only when dotnet runs an application by using the exec command. For example, dotnet exec --runtimeconfig myapp.runtimeconfig.json myapp.dll.

dotnet commands General Project references NuGet packages NuGet commands Workload commands Global, tool-path, and local tools commands

Tools are console applications that are installed from NuGet packages and are invoked from the command prompt. You can write tools yourself or install tools written by third parties. Tools are also known as global tools, tool-path tools, and local tools. For more information, see .NET tools overview.

Additional tools

The following additional tools are available as part of the .NET SDK:

Tool Function dev-certs Creates and manages development certificates. ef Entity Framework Core command-line tools. user-secrets Manages development user secrets. watch A file watcher that restarts or hot reloads an application when it detects changes in the source code.

For more information about each tool, type dotnet <tool-name> --help.

Examples

Create a new .NET console application:

dotnet new console

Build a project and its dependencies in a given directory:

dotnet build

Run an application:

dotnet exec myapp.dll
dotnet myapp.dll
See also

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4