Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update global-json.md - add example for dotnet new globalJson with ro… #42203

Merged
merged 4 commits into from
Aug 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading