Publish a .NET application and its dependencies to a directory for deployment to a hosting system. More information: https://learn.microsoft.com/dotnet/core/tools/dotnet-publish.
dotnet publish {{[-c|--configuration]}} Release {{path/to/project_file}}
dotnet publish {{[-sc|--self-contained]}} true {{[-r|--runtime]}} {{runtime_identifier}} {{path/to/project_file}}
dotnet publish {{[-r|--runtime]}} {{runtime_identifier}} -p:PublishSingleFile=true {{path/to/project_file}}
dotnet publish {{[-sc|--self-contained]}} true {{[-r|--runtime]}} {{runtime_identifier}} -p:PublishTrimmed=true {{path/to/project_file}}
dotnet publish --no-restore {{path/to/project_file}}
dotnet publish {{[-o|--output]}} {{path/to/directory}} {{path/to/project_file}}