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 --configuration Release path/to/project_file
dotnet publish --self-contained true --runtime runtime_identifier path/to/project_file
dotnet publish --runtime runtime_identifier -p:PublishSingleFile=true path/to/project_file
dotnet publish --self-contained true --runtime runtime_identifier -p:PublishTrimmed=true path/to/project_file
dotnet publish --no-restore path/to/project_file
dotnet publish --output path/to/directory path/to/project_file