The dotnet build command builds the project and its dependencies into a set of binaries.
# To compile the project or solution in the current directory:
dotnet build
# To compile a .NET project or solution in debug mode:
dotnet build <path/to/project_or_solution>
# To compile in release mode:
dotnet build
# To compile without restoring dependencies:
dotnet build --no-restore
# To compile with a specific verbosity level:
dotnet build --verbosity <quiet|minimal|normal|detailed|diagnostic>
# To compile for a specific runtime:
dotnet build --runtime <runtime_identifier>
# To specify the output directory:
dotnet build --output <path/to/directory>