snippetbashTip
dotnet build — Builds a .NET application and its dependencies. More information: <https://learn.microsoft.com/dotne
Viewed 0 times
buildscommandnetanditsclidotnet buildapplication
Problem
How to use the
dotnet build command: Builds a .NET application and its dependencies. More information: <https://learn.microsoft.com/dotnet/core/tools/dotnet-build>.Solution
dotnet build — Builds a .NET application and its dependencies. More information: <https://learn.microsoft.com/dotnet/core/tools/dotnet-build>.Compile the project or solution in the current directory:
dotnet buildCompile 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-restoreCompile 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}}Code Snippets
Compile the project or solution in the current directory
dotnet buildCompile 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-restoreCompile with a specific verbosity level
dotnet build {{[-v|--verbosity]}} {{quiet|minimal|normal|detailed|diagnostic}}Context
tldr-pages: common/dotnet build
Revisions (0)
No revisions yet.