Skip to content

Commit fe431d9

Browse files
authored
Update global-json.md - add example for dotnet new globalJson with ro… (#42203)
1 parent cfc868f commit fe431d9

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

docs/core/tools/dotnet-new-sdk-templates.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -833,6 +833,11 @@ API Controller with or without read/write actions.
833833
- **`--sdk-version <VERSION_NUMBER>`**
834834

835835
Specifies the version of the .NET SDK to use in the *global.json* file.
836+
837+
- **`--roll-forward <ROLL_FORWARD_POLICY>`**
838+
839+
The roll-forward policy to use when selecting an SDK version, either as a fallback when a specific SDK version is missing or as a directive to use a later version.
840+
For more information, see [global-json](global-json.md#rollforward).
836841

837842
## `editorconfig`
838843

docs/core/tools/dotnet-new.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ Each template may have additional options defined. For more information, see [.N
148148
- Create a *global.json* in the current directory setting the SDK version to 8.0.101:
149149

150150
```dotnetcli
151-
dotnet new globaljson --sdk-version 8.0.101
151+
dotnet new globaljson --sdk-version 8.0.101 --roll-forward latestFeature
152152
```
153153

154154
- Show help for the C# console application template:

docs/core/tools/global-json.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ To install additional .NET SDK versions on your machine, visit the [Download .NE
172172
You can create a new *global.json* file in the current directory by executing the [dotnet new](dotnet-new.md) command, similar to the following example:
173173

174174
```dotnetcli
175-
dotnet new globaljson --sdk-version 8.0.302
175+
dotnet new globaljson --sdk-version 8.0.302 --roll-forward latestFeature
176176
```
177177

178178
## Matching rules

0 commit comments

Comments
 (0)