From 09ed6cfe6ee1b08dfcdc77094fa8b1f5772f6055 Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Mon, 19 Jun 2023 14:04:58 -0400 Subject: [PATCH] Document Restore UseCurrentRuntime (#35876) Document Restore UseCurrentRuntime like we have for Build (https://github.com/dotnet/docs/pull/31970) and Publish (https://github.com/dotnet/docs/pull/32004) --- docs/core/tools/dotnet-restore.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/core/tools/dotnet-restore.md b/docs/core/tools/dotnet-restore.md index b4b87895e059e..3867be5855736 100644 --- a/docs/core/tools/dotnet-restore.md +++ b/docs/core/tools/dotnet-restore.md @@ -19,7 +19,8 @@ dotnet restore [] [--configfile ] [--disable-parallel] [--interactive] [--lock-file-path ] [--locked-mode] [--no-cache] [--no-dependencies] [--packages ] [-r|--runtime ] [-s|--source ] - [--use-lock-file] [-v|--verbosity ] + [--use-current-runtime, --ucr [true|false]] [--use-lock-file] + [-v|--verbosity ] dotnet restore -h|--help ``` @@ -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.