Skip to content

Commit c8f1b34

Browse files
authored
add in file command
1 parent 0b0d495 commit c8f1b34

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/core/tools/dotnet-run.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ms.date: 09/24/2025
55
---
66
# dotnet run
77

8-
**This article applies to:** ✔️ .NET Core 6 and later versions
8+
**This article applies to:** ✔️ .NET 6 and later versions
99

1010
## Name
1111

@@ -15,7 +15,7 @@ ms.date: 09/24/2025
1515

1616
```dotnetcli
1717
dotnet run [<applicationArguments>] [-a|--arch <ARCHITECTURE>] [-c|--configuration <CONFIGURATION>]
18-
[-e|--environment <KEY=VALUE>]
18+
[-e|--environment <KEY=VALUE>] [--file <FILE_PATH>]
1919
[-f|--framework <FRAMEWORK>] [--force] [--interactive]
2020
[--launch-profile <NAME>] [--no-build]
2121
[--no-dependencies] [--no-launch-profile] [--no-restore]
@@ -83,7 +83,7 @@ To run the application, the `dotnet run` command resolves the dependencies of th
8383

8484
- **`--file <FILE_PATH>`**
8585

86-
The path to the file-based app to run. This option can be passed as the first argument if there is no project in the current directory.
86+
The path to the file-based program to run. This option can be passed as the first argument if there is no project in the current directory. For more information, see [Build file-based C# programs](/dotnet/csharp/fundamentals/tutorials/file-based-programs).
8787

8888
- **`--force`**
8989

@@ -165,7 +165,7 @@ The environment is constructed in the same order as this list, so the `-e|--envi
165165
dotnet run
166166
```
167167

168-
- Run the specified file-based app:
168+
- Run the specified file-based program with arguments:
169169

170170
```dotnetcli
171171
dotnet run ConsoleApp.cs -- arg1 arg2

0 commit comments

Comments
 (0)