Skip to content

Commit 8539262

Browse files
authored
Update dotnet-restore.md (#46597)
1 parent d8520a6 commit 8539262

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

docs/core/tools/dotnet-restore.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ dotnet restore [<ROOT>] [--configfile <FILE>] [--disable-build-servers]
2121
[--no-cache] [--no-dependencies] [--packages <PACKAGES_DIRECTORY>]
2222
[-r|--runtime <RUNTIME_IDENTIFIER>] [-s|--source <SOURCE>]
2323
[--tl:[auto|on|off]] [--use-current-runtime, --ucr [true|false]]
24-
[--use-lock-file] [-v|--verbosity <LEVEL>]
24+
[--use-lock-file] [-a|--arch <ARCHITECTURE>] [--os <OS>] [-v|--verbosity <LEVEL>]
2525
2626
dotnet restore -h|--help
2727
```
@@ -156,6 +156,18 @@ There are three specific settings that `dotnet restore` ignores:
156156

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

159+
- **`-a|--arch`**
160+
161+
Specifies the target architecture.This is a shorthand syntax for setting the Runtime Identifier (RID), where the provided value is combined with the default RID. For example, on a `win-x64` machine, specifying `--arch arm64` sets the RID to `win-arm64`.
162+
163+
Introduced in .NET SDK 8.0.100
164+
165+
- **`--os`**
166+
167+
Specifies the target operating system (OS).This is a shorthand syntax for setting the Runtime Identifier (RID), where the provided value is combined with the default RID. For example, on a `win-x64` machine, specifying `--os linux` sets the RID to `linux-x64`.
168+
169+
Introduced in .NET SDK 10.0.100
170+
159171
[!INCLUDE [verbosity](../../../includes/cli-verbosity-minimal.md)]
160172

161173
## Examples

0 commit comments

Comments
 (0)