Skip to content

Commit

Permalink
Document Restore UseCurrentRuntime
Browse files Browse the repository at this point in the history
Document Restore UseCurrentRuntime like we have for Build (dotnet#31970) and Publish (dotnet#32004)
  • Loading branch information
mathieu-benoit authored Jun 19, 2023
1 parent e226428 commit c245847
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/core/tools/dotnet-restore.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ dotnet restore [<ROOT>] [--configfile <FILE>] [--disable-parallel]
[--interactive] [--lock-file-path <LOCK_FILE_PATH>] [--locked-mode]
[--no-cache] [--no-dependencies] [--packages <PACKAGES_DIRECTORY>]
[-r|--runtime <RUNTIME_IDENTIFIER>] [-s|--source <SOURCE>]
[--use-lock-file] [-v|--verbosity <LEVEL>]
[--use-current-runtime, --ucr [true|false]] [--use-lock-file]
[-v|--verbosity <LEVEL>]
dotnet restore -h|--help
```
Expand Down Expand Up @@ -140,6 +141,10 @@ There are three specific settings that `dotnet restore` ignores:

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.

- **`--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.

- **`--use-lock-file`**

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

0 comments on commit c245847

Please sign in to comment.