diff --git a/docs/core/tools/dotnet-new-sdk-templates.md b/docs/core/tools/dotnet-new-sdk-templates.md index b0158a9b7322b..87960767461a8 100644 --- a/docs/core/tools/dotnet-new-sdk-templates.md +++ b/docs/core/tools/dotnet-new-sdk-templates.md @@ -833,6 +833,11 @@ API Controller with or without read/write actions. - **`--sdk-version `** Specifies the version of the .NET SDK to use in the *global.json* file. + +- **`--roll-forward `** + + 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` diff --git a/docs/core/tools/dotnet-new.md b/docs/core/tools/dotnet-new.md index 17bb3180210a4..24346db9fa63d 100644 --- a/docs/core/tools/dotnet-new.md +++ b/docs/core/tools/dotnet-new.md @@ -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: diff --git a/docs/core/tools/global-json.md b/docs/core/tools/global-json.md index 9668eb1bc57f4..888c3f78b7038 100644 --- a/docs/core/tools/global-json.md +++ b/docs/core/tools/global-json.md @@ -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