Skip to content

Commit 1cd5cd6

Browse files
authored
Merge pull request #32004 from dotnet/nagilson-publish-ucr
Document Publish UseCurrentRuntime
2 parents e1eefc5 + c7e62ee commit 1cd5cd6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

docs/core/tools/dotnet-publish.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ dotnet publish [<PROJECT>|<SOLUTION>] [-a|--arch <ARCHITECTURE>]
2121
[--no-restore] [--nologo] [-o|--output <OUTPUT_DIRECTORY>]
2222
[--os <OS>] [-r|--runtime <RUNTIME_IDENTIFIER>]
2323
[--sc|--self-contained [true|false]] [--no-self-contained]
24-
[-s|--source <SOURCE>] [-v|--verbosity <LEVEL>]
25-
[--version-suffix <VERSION_SUFFIX>]
24+
[-s|--source <SOURCE>] [--use-current-runtime, --ucr [true|false]]
25+
[-v|--verbosity <LEVEL>] [--version-suffix <VERSION_SUFFIX>]
2626
2727
dotnet publish -h|--help
2828
```
@@ -182,6 +182,10 @@ For more information, see the following resources:
182182

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

185+
- **`--use-current-runtime, --ucr [true|false]`**
186+
187+
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.
188+
185189
- **`--version-suffix <VERSION_SUFFIX>`**
186190

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

0 commit comments

Comments
 (0)