mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-07 22:57:20 +00:00
Update cheatsheets
This commit is contained in:
37
dotnet-build
Normal file
37
dotnet-build
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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 build`
|
||||
|
||||
- Compile a .NET project or solution in debug mode:
|
||||
|
||||
`dotnet build {{path/to/project_or_solution}}`
|
||||
|
||||
- Compile in release mode:
|
||||
|
||||
`dotnet build --configuration {{Release}}`
|
||||
|
||||
- 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}}`
|
||||
Reference in New Issue
Block a user