Skip to content

Commit

Permalink
fix(CommandLine): examples (#41823)
Browse files Browse the repository at this point in the history
  • Loading branch information
vernou committed Jul 26, 2024
1 parent 2729b53 commit e222d75
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/standard/commandline/get-started-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,11 @@ You can use any of the following ways to test while developing a command-line ap
* 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:

```dotnetcli
dotnet run -- --file scl.runtimeconfig.json
dotnet run -- --file bin/Debug/net6.0/scl.runtimeconfig.json
```

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.

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>`.

* [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:
Expand Down

0 comments on commit e222d75

Please sign in to comment.