Fix incorrect parameter name in WithProcessCommand doc examples (name → commandName)#1154
Merged
Merged
Conversation
… docs Co-authored-by: IEvangelist <7679720+IEvangelist@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix incorrect basic command examples in WithProcessCommand API
Fix incorrect parameter name in WithProcessCommand doc examples (name → commandName)
Jun 2, 2026
alistairmatthews
approved these changes
Jun 4, 2026
alistairmatthews
left a comment
Contributor
There was a problem hiding this comment.
These changes are correct and the code now patches the WithProcessCommand definition; https://github.com/microsoft/aspire/blob/6518fb56fe0cf63a23fc86767c6181352903e68c/src/Aspire.Hosting/ResourceBuilderExtensions.cs
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes C# documentation examples for the experimental WithProcessCommand API to use the correct named argument (commandName:) instead of the non-existent name: parameter, preventing CS1739 when readers copy/paste the samples.
Changes:
- Update the Aspire 13.4 “What’s new” example to use
commandName:. - Update both “static” and “dynamic”
WithProcessCommandexamples in the custom resource commands fundamentals doc. - Update the
ASPIREPROCESSCOMMAND001diagnostic page example to usecommandName:.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/frontend/src/content/docs/whats-new/aspire-13-4.mdx | Fixes the introductory WithProcessCommand sample to use the correct named parameter. |
| src/frontend/src/content/docs/fundamentals/custom-resource-commands.mdx | Fixes both static and dynamic WithProcessCommand samples to use commandName:. |
| src/frontend/src/content/docs/diagnostics/aspireprocesscommand001.mdx | Fixes the diagnostic reference example to use commandName:. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Doc examples for
WithProcessCommandusedname:as the C# named argument, but the actual API parameter iscommandName:. Copy-pasting any example producedCS1739: The best overload for 'WithProcessCommand' does not have a parameter named 'name'.Changes
whats-new/aspire-13-4.mdx— fixname:→commandName:in the introductory examplefundamentals/custom-resource-commands.mdx— fix both the basic and dynamicWithProcessCommandexamplesdiagnostics/aspireprocesscommand001.mdx— fix the diagnostic reference example