Skip to content

Commit d12b748

Browse files
minicatsCBtdykstra
andauthored
Add --framework argument description (#32867)
* Add --framework argument description I can use the argument from my CLI. However, the [online docs](https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-new) don't explain it, although they use the argument in one of the examples. * Update docs/core/tools/dotnet-new.md Co-authored-by: Tom Dykstra <[email protected]>
1 parent fe23fee commit d12b748

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/core/tools/dotnet-new.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ms.date: 09/04/2020
1616

1717
```dotnetcli
1818
dotnet new <TEMPLATE> [--dry-run] [--force] [-lang|--language {"C#"|"F#"|VB}]
19-
[-n|--name <OUTPUT_NAME>] [--no-update-check]
19+
[-n|--name <OUTPUT_NAME>] [-f|--framework <FRAMEWORK>] [--no-update-check]
2020
[-o|--output <OUTPUT_DIRECTORY>] [--project <PROJECT_PATH>]
2121
[-d|--diagnostics] [--verbosity <LEVEL>] [Template options]
2222
@@ -122,6 +122,10 @@ To activate tab completion for the .NET SDK, see [Enable tab completion](enable-
122122

123123
The name for the created output. If no name is specified, the name of the current directory is used.
124124

125+
- **`-f|--framework <FRAMEWORK>`**
126+
127+
Specifies the [target framework](../../standard/frameworks.md). It expects a target framework moniker (TFM). Examples: "net6.0", "net7.0-macos". This value will be reflected in the project file.
128+
125129
- **`-no-update-check`**
126130

127131
Disables checking for template package updates when instantiating a template. Available since .NET SDK 6.0.100.

0 commit comments

Comments
 (0)