commands.sh

dotnet build

all

Builds a .NET application and its dependencies.

More info →

Options (4)

-c, --configurationboolean

Compile in release mode

Example: dotnet build {{[-c|--configuration]}} {{Release}}
-v, --verbosityboolean

Compile with a specific verbosity level

Example: dotnet build {{[-v|--verbosity]}} {{quiet|minimal|normal|detailed|diagnostic}}
-r, --runtimeboolean

Compile for a specific runtime

Example: dotnet build {{[-r|--runtime]}} {{runtime_identifier}}
-o, --outputboolean

Specify the output directory

Example: dotnet build {{[-o|--output]}} {{path/to/directory}}

Examples (7)

Compile the project or solution in the current directory

Compile a .NET project or solution in debug mode

dotnet build path/to/project_or_solution

Compile in release mode

dotnet build [-c|--configuration] Release

Compile without restoring dependencies

dotnet build --no-restore

Compile with a specific verbosity level

dotnet build [-v|--verbosity] quiet|minimal|normal|detailed|diagnostic

Compile for a specific runtime

dotnet build [-r|--runtime] runtime_identifier

Specify the output directory

dotnet build [-o|--output] path/to/directory
made by @shridhargupta | data from tldr-pages