Skip to content

Commit de9c03a

Browse files
authored
Add missing --allow-roll-forward documentation for dotnet tool commands (#48223)
1 parent 6fe3ddc commit de9c03a

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

docs/core/tools/dotnet-tool-install.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ For more information, see [Install a local tool](global-tools.md#install-a-local
100100

101101
- **`--allow-roll-forward`**
102102

103-
Allow tool to use a newer version of the .NET runtime if the runtime it targets isn't installed.
103+
Available starting with .NET 9.0 SDK. Allow tool to use a newer version of the .NET runtime if the runtime it targets isn't installed.
104104

105105
- **`-a|--arch <ARCHITECTURE>`**
106106

@@ -207,6 +207,10 @@ For more information, see [Install a local tool](global-tools.md#install-a-local
207207

208208
Installs [dotnetsay](https://www.nuget.org/packages/dotnetsay/) as a global tool with the verbosity of minimal. The default verbosity for global tool is quiet.
209209

210+
- **`dotnet tool install -g dotnetsay --allow-roll-forward`**
211+
212+
Installs [dotnetsay](https://www.nuget.org/packages/dotnetsay/) as a global tool and allows it to run on newer .NET versions if the target runtime isn't available.
213+
210214
## See also
211215

212216
- [.NET tools](global-tools.md)

docs/core/tools/dotnet-tool-run.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ms.date: 02/14/2020
1414
## Synopsis
1515

1616
```dotnetcli
17-
dotnet tool run <COMMAND NAME>
17+
dotnet tool run <COMMAND NAME> [--allow-roll-forward]
1818
1919
dotnet tool run -h|--help
2020
```
@@ -31,6 +31,10 @@ The `dotnet tool run` command searches tool manifest files that are in scope for
3131

3232
## Options
3333

34+
- **`--allow-roll-forward`**
35+
36+
Available starting with .NET 9.0 SDK. Allow tool to use a newer version of the .NET runtime if the runtime it targets isn't installed.
37+
3438
[!INCLUDE [help](../../../includes/cli-help.md)]
3539

3640
## Example
@@ -39,6 +43,10 @@ The `dotnet tool run` command searches tool manifest files that are in scope for
3943

4044
Runs the `dotnetsay` local tool.
4145

46+
- **`dotnet tool run dotnetsay --allow-roll-forward`**
47+
48+
Runs the `dotnetsay` local tool and allows it to run on newer .NET versions if the target runtime isn't available.
49+
4250
## See also
4351

4452
- [.NET tools](global-tools.md)

0 commit comments

Comments
 (0)