Fix dotnet run example in System.CommandLine tutorial #40757
Labels
doc-bug
Problem with the content; needs to be fixed [org][type][category]
dotnet-fundamentals/svc
okr-health
okr-quality
Content-quality KR: Concerns article defects (bugs), freshness, or build warnings.
Pri1
High priority, do before Pri2 and Pri3
📌 seQUESTered
Identifies that an issue has been imported into Quest.
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 :
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
Associated WorkItem - 287048
The text was updated successfully, but these errors were encountered: