diff --git a/docs/core/tools/dotnet-publish.md b/docs/core/tools/dotnet-publish.md index afe22a30deefc..29d9abc4620dc 100644 --- a/docs/core/tools/dotnet-publish.md +++ b/docs/core/tools/dotnet-publish.md @@ -21,8 +21,8 @@ dotnet publish [|] [-a|--arch ] [--no-restore] [--nologo] [-o|--output ] [--os ] [-r|--runtime ] [--sc|--self-contained [true|false]] [--no-self-contained] - [-s|--source ] [-v|--verbosity ] - [--version-suffix ] + [-s|--source ] [--use-current-runtime, --ucr [true|false]] + [-v|--verbosity ] [--version-suffix ] dotnet publish -h|--help ``` @@ -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 `** Defines the version suffix to replace the asterisk (`*`) in the version field of the project file.