Skip to content

Commit 09ed6cf

Browse files
Document Restore UseCurrentRuntime (#35876)
Document Restore UseCurrentRuntime like we have for Build (#31970) and Publish (#32004)
1 parent e226428 commit 09ed6cf

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

docs/core/tools/dotnet-restore.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ dotnet restore [<ROOT>] [--configfile <FILE>] [--disable-parallel]
1919
[--interactive] [--lock-file-path <LOCK_FILE_PATH>] [--locked-mode]
2020
[--no-cache] [--no-dependencies] [--packages <PACKAGES_DIRECTORY>]
2121
[-r|--runtime <RUNTIME_IDENTIFIER>] [-s|--source <SOURCE>]
22-
[--use-lock-file] [-v|--verbosity <LEVEL>]
22+
[--use-current-runtime, --ucr [true|false]] [--use-lock-file]
23+
[-v|--verbosity <LEVEL>]
2324
2425
dotnet restore -h|--help
2526
```
@@ -140,6 +141,10 @@ There are three specific settings that `dotnet restore` ignores:
140141

141142
Specifies the URI of the NuGet package source to use during the restore operation. This setting overrides all of the sources specified in the *nuget.config* files. Multiple sources can be provided by specifying this option multiple times.
142143

144+
- **`--use-current-runtime, --ucr [true|false]`**
145+
146+
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.
147+
143148
- **`--use-lock-file`**
144149

145150
Enables project lock file to be generated and used with restore.

0 commit comments

Comments
 (0)