LinuxCommandLibrary

dotnet-build

Builds a .NET application and its dependencies.

TLDR

Compile the project or solution in the current directory

$ dotnet build
copy


Compile a .NET project or solution in debug mode
$ dotnet build [path/to/project_or_solution]
copy


Compile in release mode
$ dotnet build --configuration [Release]
copy


Compile without restoring dependencies
$ dotnet build --no-restore
copy


Compile with a specific verbosity level
$ dotnet build --verbosity [quiet|minimal|normal|detailed|diagnostic]
copy


Compile for a specific runtime
$ dotnet build --runtime [runtime_identifier]
copy


Specify the output directory
$ dotnet build --output [path/to/directory]
copy

Copied to clipboard