Options (4)
-c, --configurationbooleanCompile in release mode
Example:
dotnet build {{[-c|--configuration]}} {{Release}}-v, --verbositybooleanCompile with a specific verbosity level
Example:
dotnet build {{[-v|--verbosity]}} {{quiet|minimal|normal|detailed|diagnostic}}-r, --runtimebooleanCompile for a specific runtime
Example:
dotnet build {{[-r|--runtime]}} {{runtime_identifier}}-o, --outputbooleanSpecify 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_solutionCompile in release mode
dotnet build [-c|--configuration] ReleaseCompile without restoring dependencies
dotnet build --no-restoreCompile with a specific verbosity level
dotnet build [-v|--verbosity] quiet|minimal|normal|detailed|diagnosticCompile for a specific runtime
dotnet build [-r|--runtime] runtime_identifierSpecify the output directory
dotnet build [-o|--output] path/to/directorymade by @shridhargupta | data from tldr-pages