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
+16-3Lines changed: 16 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,9 @@ The version of the .NET SDK to use.
43
43
44
44
This field:
45
45
46
-
- Doesn't have wildcard support; that is, you must specify the full version number.
46
+
- Requires the full version number, such as 9.0.100.
47
+
- Doesn't support version numbers like 9, 9.0, or 9.0.x.
48
+
- Doesn't have wildcard support.
47
49
- Doesn't support version ranges.
48
50
49
51
#### `allowPrerelease`
@@ -90,7 +92,7 @@ The following table shows the possible values for the `rollForward` key:
90
92
#### `paths`
91
93
92
94
- Type: Array of `string`
93
-
- Available since: .NET 10 Preview 3 SDK.
95
+
- Available since: .NET 10 SDK.
94
96
95
97
Specifies the locations that should be considered when searching for a compatible .NET SDK. Paths can be absolute or relative to the location of the *global.json* file. The special value `$host$` represents the location corresponding to the running `dotnet` executable.
96
98
@@ -103,7 +105,7 @@ This feature enables using local SDK installations (such as SDKs relative to a r
103
105
#### `errorMessage`
104
106
105
107
- Type: `string`
106
-
- Available since: .NET 10 Preview 3 SDK.
108
+
- Available since: .NET 10 SDK.
107
109
108
110
Specifies a custom error message displayed when the SDK resolver can't find a compatible .NET SDK.
109
111
@@ -209,6 +211,17 @@ The following example shows how to specify additional SDK search paths and a cus
209
211
}
210
212
```
211
213
214
+
The following example shows an invalid version specified. The output of the command `dotnet --info` shows the error message: "Version '10.0' is not valid for the 'sdk/version' value."
215
+
216
+
```json
217
+
{
218
+
"sdk": {
219
+
"version": "10.0",
220
+
"rollForward": "latestFeature"
221
+
}
222
+
}
223
+
```
224
+
212
225
The following example shows how to specify `Microsoft.Testing.Platform` as the test runner:
0 commit comments