From c7e62eebcab56fd26cc45dfc2caf3f9ffffc0434 Mon Sep 17 00:00:00 2001 From: Noah Gilson Date: Mon, 24 Oct 2022 09:43:03 -0700 Subject: [PATCH] Document Publish UseCurrentRuntime Same as https://github.com/dotnet/docs/pull/31970 but for publish! --- docs/core/tools/dotnet-publish.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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.