Skip to content

Fix dotnet run example in System.CommandLine tutorial #40757

@vernou

Description

@vernou

Type of issue

Code doesn't work

Description

In the chapter Test the app, it say you can test the app with the command dotnet run -- --file scl.runtimeconfig.json executed from a shell in the project directory.

But with dotnet run, the working directory is the project directory, so the file scl.runtimeconfig.json isn't found and the execution fail.

The working command is :

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

I suggest to modify the command and add a short explanation why this path.
If you agree, I can do the PR.

Page URL

https://learn.microsoft.com/en-us/dotnet/standard/commandline/get-started-tutorial

Content source URL

https://github.com/dotnet/docs/blob/main/docs/standard/commandline/get-started-tutorial.md

Document Version Independent Id

fa160b1d-66ed-8c5d-37cd-b7e02443e9f1

Article author

@tdykstra

Metadata

  • ID: 7705dc41-7297-0807-7e9c-2e6548c26b84
  • Service: dotnet-fundamentals

Associated WorkItem - 287048

Metadata

Metadata

Assignees

Labels

📌 seQUESTeredIdentifies that an issue has been imported into Quest.dotnet-fundamentals/svcokr-qualityContent-quality KR: Concerns article defects (bugs), freshness, or build warnings.

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions