Skip to content

Commit 327273d

Browse files
KathleenDollardBillWagner
authored andcommitted
Fix discussion of SDK/runtime selection (#11594)
* Fix discussion of SDK/runtime selection The SDK selection on this page was wrong, and I thought the runtime could use a bit more clarity. I did this fairly fast and am looking forward to feedback on it. * Update docs/core/tools/index.md Co-Authored-By: KathleenDollard <[email protected]>
1 parent f011ea4 commit 327273d

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

docs/core/tools/index.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,17 @@ dotnet /build_output/my_app.dll
116116

117117
### Driver
118118

119-
The driver is named [dotnet](dotnet.md) and has two responsibilities, either running a [framework-dependent app](../deploying/index.md) or executing a command. The only time `dotnet` is used without a command is when it's used to start an application.
119+
The driver is named [dotnet](dotnet.md) and has two responsibilities, either running a [framework-dependent app](../deploying/index.md) or executing a command.
120120

121-
To run a framework-dependent app, specify the app after the driver, for example, `dotnet /path/to/my_app.dll`. When executing the command from the folder where the app's DLL resides, simply execute `dotnet my_app.dll`.
121+
To run a framework-dependent app, specify the app after the driver, for example, `dotnet /path/to/my_app.dll`. When executing the command from the folder where the app's DLL resides, simply execute `dotnet my_app.dll`. If you want to use a specific version of the .NET Core Runtime, use the `--fx-version <VERSION>` option (see the [dotnet command](dotnet.md) reference).
122122

123-
When you supply a command to the driver, `dotnet.exe` starts the CLI command execution process. First, the driver determines the version of the SDK to use. If the version isn't specified in the command options, the driver uses the latest version available. To specify a version other than the latest installed version, use the `--fx-version <VERSION>` option (see the [dotnet command](dotnet.md) reference). Once the SDK version is determined, the driver executes the command.
123+
When you supply a command to the driver, `dotnet.exe` starts the CLI command execution process. For example:
124+
125+
```bash
126+
> dotnet build
127+
```
128+
129+
First, the driver determines the version of the SDK to use. If there is no ['global.json'](global-json.md), the latest version of the SDK available is used. This might be either a preview or stable version, depending on what is latest on the machine. Once the SDK version is determined, it executes the command.
124130

125131
### Command ("verb")
126132

0 commit comments

Comments
 (0)