Skip to content

Commit

Permalink
Update global-json.md - add example for dotnet new globalJson with ro… (
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrekle authored Aug 16, 2024
1 parent cfc868f commit fe431d9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions docs/core/tools/dotnet-new-sdk-templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -833,6 +833,11 @@ API Controller with or without read/write actions.
- **`--sdk-version <VERSION_NUMBER>`**

Specifies the version of the .NET SDK to use in the *global.json* file.

- **`--roll-forward <ROLL_FORWARD_POLICY>`**

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.
For more information, see [global-json](global-json.md#rollforward).

## `editorconfig`

Expand Down
2 changes: 1 addition & 1 deletion docs/core/tools/dotnet-new.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ Each template may have additional options defined. For more information, see [.N
- Create a *global.json* in the current directory setting the SDK version to 8.0.101:

```dotnetcli
dotnet new globaljson --sdk-version 8.0.101
dotnet new globaljson --sdk-version 8.0.101 --roll-forward latestFeature
```

- Show help for the C# console application template:
Expand Down
2 changes: 1 addition & 1 deletion docs/core/tools/global-json.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ To install additional .NET SDK versions on your machine, visit the [Download .NE
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:

```dotnetcli
dotnet new globaljson --sdk-version 8.0.302
dotnet new globaljson --sdk-version 8.0.302 --roll-forward latestFeature
```

## Matching rules
Expand Down

0 comments on commit fe431d9

Please sign in to comment.