2020-09-29 11:20:05 +01:00
|
|
|
# dotnet build
|
|
|
|
|
|
|
|
> Builds a .NET application and its dependencies.
|
2022-10-04 16:06:23 +01:00
|
|
|
> More information: <https://learn.microsoft.com/dotnet/core/tools/dotnet-build>.
|
2020-09-29 11:20:05 +01:00
|
|
|
|
|
|
|
- Compile the project or solution in the current directory:
|
|
|
|
|
|
|
|
`dotnet build`
|
|
|
|
|
|
|
|
- Compile a .NET project or solution in debug mode:
|
|
|
|
|
|
|
|
`dotnet build {{path/to/project_or_solution}}`
|
|
|
|
|
|
|
|
- Compile in release mode:
|
|
|
|
|
2020-10-28 17:31:03 +00:00
|
|
|
`dotnet build --configuration {{Release}}`
|
2020-09-29 11:20:05 +01:00
|
|
|
|
|
|
|
- Compile without restoring dependencies:
|
|
|
|
|
|
|
|
`dotnet build --no-restore`
|
|
|
|
|
|
|
|
- Compile with a specific verbosity level:
|
|
|
|
|
|
|
|
`dotnet build --verbosity {{quiet|minimal|normal|detailed|diagnostic}}`
|
|
|
|
|
|
|
|
- Compile for a specific runtime:
|
|
|
|
|
|
|
|
`dotnet build --runtime {{runtime_identifier}}`
|
|
|
|
|
|
|
|
- Specify the output directory:
|
|
|
|
|
|
|
|
`dotnet build --output {{path/to/directory}}`
|