Skip to content

Commit 9cf2884

Browse files
Add missing options to dotnet run command documentation (#50912)
* Initial plan * Add missing options to dotnet-run.md Synopsis and update launch-profile with -lp shortcut Co-authored-by: meaghanlewis <10103121+meaghanlewis@users.noreply.github.com> * Fix formatting of dotnet run command options * Remove extra newline at end of dotnet-run.md Add a newline at the end of the dotnet-run.md file. * Fix missing newline at end of dotnet-run.md Add a newline at the end of the dotnet-run.md file * Remove trailing newline from dotnet-run.md --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: meaghanlewis <10103121+meaghanlewis@users.noreply.github.com> Co-authored-by: Meaghan Osagie (Lewis) <mosagie@microsoft.com>
1 parent 51d3956 commit 9cf2884

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

docs/core/tools/dotnet-run.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,14 @@ ms.date: 09/29/2025
1616
```dotnetcli
1717
dotnet run [<applicationArguments>]
1818
[-a|--arch <ARCHITECTURE>] [--artifacts-path <ARTIFACTS_DIR>]
19-
[-c|--configuration <CONFIGURATION>] [-e|--environment <KEY=VALUE>]
20-
[--file <FILE_PATH>] [-f|--framework <FRAMEWORK>] [--force] [--interactive]
21-
[--launch-profile <NAME>] [--no-build] [--no-dependencies]
22-
[--no-launch-profile] [--no-restore] [--os <OS>] [--project <PATH>]
23-
[-r|--runtime <RUNTIME_IDENTIFIER>] [--tl:[auto|on|off]]
24-
[-v|--verbosity <LEVEL>] [[--] [application arguments]]
19+
[-c|--configuration <CONFIGURATION>] [--disable-build-servers]
20+
[-e|--environment <KEY=VALUE>] [--file <FILE_PATH>]
21+
[-f|--framework <FRAMEWORK>] [--force] [--interactive]
22+
[-lp|--launch-profile <NAME>] [--no-build] [--no-cache]
23+
[--no-dependencies] [--no-launch-profile] [--no-restore] [--os <OS>]
24+
[--project <PATH>] [-r|--runtime <RUNTIME_IDENTIFIER>]
25+
[--sc|--self-contained] [--tl:[auto|on|off]] [-v|--verbosity <LEVEL>]
26+
[[--] [application arguments]]
2527
2628
dotnet run -h|--help
2729
```
@@ -111,7 +113,7 @@ To run the application, the `dotnet run` command resolves the dependencies of th
111113

112114
- [!INCLUDE [interactive](includes/cli-interactive.md)]
113115

114-
- **`--launch-profile <NAME>`**
116+
- **`-lp|--launch-profile <NAME>`**
115117

116118
The name of the launch profile (if any) to use when launching the application. Launch profiles are defined in the *launchSettings.json* file and are typically called `Development`, `Staging`, and `Production`. For more information, see [Working with multiple environments](/aspnet/core/fundamentals/environments).
117119

@@ -236,4 +238,3 @@ The environment is constructed in the same order as this list, so the `-e|--envi
236238
```dotnetcli
237239
dotnet run -f net6.0 -arg1 -- arg2 arg3
238240
```
239-

0 commit comments

Comments
 (0)