Skip to content

Commit 982ead8

Browse files
authored
Update doc with --arch option for dotnet --list-runtimes/sdks (#46550)
1 parent 323424c commit 982ead8

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

docs/core/tools/dotnet.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,17 @@ The following options are available when `dotnet` is used by itself, without spe
7474

7575
Prints out the version of the .NET SDK used by `dotnet` commands, which may be affected by a *global.json* file. Available only when the SDK is installed.
7676

77-
- **`--list-runtimes`**
77+
- **`--list-runtimes [--arch <ARCH>]`**
7878

79-
Prints out a list of the installed .NET runtimes. An x86 version of the SDK lists only x86 runtimes, and an x64 version of the SDK lists only x64 runtimes.
79+
Prints out a list of the installed .NET runtimes for the architecture of the invoked `dotnet`. An x86 version of `dotnet` lists only x86 runtimes, and an x64 version of `dotnet` lists only x64 runtimes.
8080

81-
- **`--list-sdks`**
81+
.NET 10 and later versions support the `--arch` argument. If specified and not the same as the `dotnet` architecture, searches for a .NET installation of the specified architecture and prints out any runtimes installed there. Allowed values include arm64, x64, and x86. The dotnet/runtime repo has the full [list of valid architecture values](https://github.com/dotnet/runtime/blob/1713d65316467e3eaf23514b6642eba5869f1b70/src/native/corehost/hostmisc/utils.cpp#L194-L205).
8282

83-
Prints out a list of the installed .NET SDKs.
83+
- **`--list-sdks [--arch <ARCH>]`**
84+
85+
Prints out a list of the installed .NET SDKs for the architecture of the invoked `dotnet`. An x86 version of `dotnet` lists only x86 SDKs, and an x64 version of `dotnet` lists only x64 SDKs.
86+
87+
.NET 10 and later versions support the `--arch` argument. If specified and not the same as the `dotnet` architecture, searches for a .NET installation of the specified architecture and prints out any SDKs installed there. Allowed values include arm64, x64, and x86. The dotnet/runtime repo has the full [list of valid architecture values](https://github.com/dotnet/runtime/blob/1713d65316467e3eaf23514b6642eba5869f1b70/src/native/corehost/hostmisc/utils.cpp#L194-L205).
8488

8589
- **`-?|-h|--help`**
8690

0 commit comments

Comments
 (0)