Skip to content

Commit

Permalink
Merge pull request #32004 from dotnet/nagilson-publish-ucr
Browse files Browse the repository at this point in the history
Document Publish UseCurrentRuntime
  • Loading branch information
nagilson authored Oct 24, 2022
2 parents e1eefc5 + c7e62ee commit 1cd5cd6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docs/core/tools/dotnet-publish.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ dotnet publish [<PROJECT>|<SOLUTION>] [-a|--arch <ARCHITECTURE>]
[--no-restore] [--nologo] [-o|--output <OUTPUT_DIRECTORY>]
[--os <OS>] [-r|--runtime <RUNTIME_IDENTIFIER>]
[--sc|--self-contained [true|false]] [--no-self-contained]
[-s|--source <SOURCE>] [-v|--verbosity <LEVEL>]
[--version-suffix <VERSION_SUFFIX>]
[-s|--source <SOURCE>] [--use-current-runtime, --ucr [true|false]]
[-v|--verbosity <LEVEL>] [--version-suffix <VERSION_SUFFIX>]
dotnet publish -h|--help
```
Expand Down Expand Up @@ -182,6 +182,10 @@ For more information, see the following resources:

[!INCLUDE [verbosity](../../../includes/cli-verbosity-minimal.md)]

- **`--use-current-runtime, --ucr [true|false]`**

Sets the `RuntimeIdentifier` to a platform portable `RuntimeIdentifier` based on the one of your machine. This happens implicitly with properties that require a `RuntimeIdentifier`, such as `SelfContained`, `PublishAot`, `PublishSelfContained`, `PublishSingleFile`, and `PublishReadyToRun`. If the property is set to false, that implicit resolution will no longer occur.

- **`--version-suffix <VERSION_SUFFIX>`**

Defines the version suffix to replace the asterisk (`*`) in the version field of the project file.
Expand Down

0 comments on commit 1cd5cd6

Please sign in to comment.