Skip to content

Conversation

@rolfbjarne
Copy link
Member

@rolfbjarne rolfbjarne commented Jan 22, 2026

Summary

Passing properties to the dotnet run command works, so add -p|--property to
the list of valid arguments, and remove the notice saying it doesn't work.

It's already listed as a valid argument further down on this page: 9b0663a


Internal previews

📄 File 🔗 Preview link
docs/core/tools/dotnet-run.md docs/core/tools/dotnet-run

It's also listed as a valid argument further down on this page:
dotnet@9b0663a
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR corrects the documentation for the dotnet run command to accurately reflect that the -p|--property option is supported. The change removes an outdated note stating that property arguments don't work, which contradicted existing documentation and examples elsewhere in the same file.

Changes:

  • Added -p|--property:<PROPERTYNAME>=<VALUE> to the command synopsis
  • Removed the NOTE claiming that dotnet run doesn't respect property arguments

Copy link
Contributor

@meaghanlewis meaghanlewis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rolfbjarne thanks for adding this!

@meaghanlewis meaghanlewis merged commit 6993c96 into dotnet:main Jan 22, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants