You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/core/tools/global-json.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,13 +28,13 @@ For information about specifying the runtime version instead of the SDK version,
28
28
29
29
## global.json schema
30
30
31
-
### sdk
31
+
### `sdk`
32
32
33
33
Type: `object`
34
34
35
35
Specifies information about the .NET SDK to select.
36
36
37
-
#### version
37
+
#### `version`
38
38
39
39
- Type: `string`
40
40
@@ -45,7 +45,7 @@ This field:
45
45
- Doesn't have wildcard support; that is, you must specify the full version number.
46
46
- Doesn't support version ranges.
47
47
48
-
#### allowPrerelease
48
+
#### `allowPrerelease`
49
49
50
50
- Type: `boolean`
51
51
- 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
57
57
- If you're **not** in Visual Studio, the default value is `true`.
58
58
- 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`.
59
59
60
-
#### rollForward
60
+
#### `rollForward`
61
61
62
62
- Type: `string`
63
63
- Available since: .NET Core 3.0 SDK.
@@ -86,7 +86,7 @@ The following table shows the possible values for the `rollForward` key:
86
86
|`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. |
87
87
|`disable`| Doesn't roll forward. An exact match is required. |
88
88
89
-
#### paths
89
+
#### `paths`
90
90
91
91
- Type: Array of `string`
92
92
- 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
99
99
100
100
> 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`.
101
101
102
-
#### errorMessage
102
+
#### `errorMessage`
103
103
104
104
- Type: `string`
105
105
- Available since: .NET 10 Preview 3 SDK.
106
106
107
107
Specifies a custom error message displayed when the SDK resolver can't find a compatible .NET SDK.
0 commit comments