dotnet-publish

publish Publish a .NET application and its dependencies to a…

dotnet publish

Publish a .NET application and its dependencies to a directory for deployment to a hosting system. More information: https://docs.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}}

Также может быть вам интересно:
КодТрюки BashНастройкиТерминал/Консоль
← dotnet-ef dotnet-restore →