Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(CommandLine): examples #41823

Merged
merged 2 commits into from
Jul 26, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 csproj folder, so the relative path to `scl.runtimeconfig.json` is from the csproj folder.
vernou marked this conversation as resolved.
Show resolved Hide resolved

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
Loading