Skip to content

Commit 7f37578

Browse files
authored
Codefence JSON element names in global.json doc (#48463)
1 parent d8acfcd commit 7f37578

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/core/tools/global-json.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ For information about specifying the runtime version instead of the SDK version,
2828

2929
## global.json schema
3030

31-
### sdk
31+
### `sdk`
3232

3333
Type: `object`
3434

3535
Specifies information about the .NET SDK to select.
3636

37-
#### version
37+
#### `version`
3838

3939
- Type: `string`
4040

@@ -45,7 +45,7 @@ This field:
4545
- Doesn't have wildcard support; that is, you must specify the full version number.
4646
- Doesn't support version ranges.
4747

48-
#### allowPrerelease
48+
#### `allowPrerelease`
4949

5050
- Type: `boolean`
5151
- Available since: .NET Core 3.0 SDK.
@@ -57,7 +57,7 @@ If you don't set this value explicitly, the default value depends on whether you
5757
- If you're **not** in Visual Studio, the default value is `true`.
5858
- If you're in Visual Studio, it uses the prerelease status requested. That is, if you're using a Preview version of Visual Studio or you set the **Use previews of the .NET SDK** option (under **Tools** > **Options** > **Environment** > **Preview Features**), the default value is `true`. Otherwise, the default value is `false`.
5959

60-
#### rollForward
60+
#### `rollForward`
6161

6262
- Type: `string`
6363
- Available since: .NET Core 3.0 SDK.
@@ -86,7 +86,7 @@ The following table shows the possible values for the `rollForward` key:
8686
| `latestMajor` | Uses the highest installed .NET SDK with a version that's greater than or equal to the specified value. <br> If not found, fail. |
8787
| `disable` | Doesn't roll forward. An exact match is required. |
8888

89-
#### paths
89+
#### `paths`
9090

9191
- Type: Array of `string`
9292
- Available since: .NET 10 Preview 3 SDK.
@@ -99,14 +99,14 @@ This feature enables using local SDK installations (such as SDKs relative to a r
9999

100100
> The "paths" feature only works when using commands that engage the .NET SDK, such as `dotnet run`. It does NOT affect scenarios such as running the native apphost launcher (`app.exe`), running with `dotnet app.dll`, or running with `dotnet exec app.dll`. To use the "paths" feature, you must use SDK commands like `dotnet run`.
101101
102-
#### errorMessage
102+
#### `errorMessage`
103103

104104
- Type: `string`
105105
- Available since: .NET 10 Preview 3 SDK.
106106

107107
Specifies a custom error message displayed when the SDK resolver can't find a compatible .NET SDK.
108108

109-
### msbuild-sdks
109+
### `msbuild-sdks`
110110

111111
Type: `object`
112112

0 commit comments

Comments
 (0)