Skip to content

Commit e222d75

Browse files
authored
fix(CommandLine): examples (#41823)
1 parent 2729b53 commit e222d75

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/standard/commandline/get-started-tutorial.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,11 @@ You can use any of the following ways to test while developing a command-line ap
9393
* Use `dotnet run` and pass option values to the app instead of to the `run` command by including them after `--`, as in the following example:
9494

9595
```dotnetcli
96-
dotnet run -- --file scl.runtimeconfig.json
96+
dotnet run -- --file bin/Debug/net6.0/scl.runtimeconfig.json
9797
```
9898

99+
The working directory is the project folder (the folder that has the .csproj file), so the relative path to `scl.runtimeconfig.json` is from the project folder.
100+
99101
In .NET 7.0.100 SDK Preview, you can use the `commandLineArgs` of a *launchSettings.json* file by running the command `dotnet run --launch-profile <profilename>`.
100102

101103
* [Publish the project to a folder](../../core/tutorials/publishing-with-visual-studio-code.md), open a command prompt to that folder, and run the executable:

0 commit comments

Comments
 (0)