Add update instructions to CLI version notification message#12391
Closed
Add update instructions to CLI version notification message#12391
Conversation
- Modified InteractionServiceStrings.resx to include update command parameter - Updated ConsoleInteractionService to detect if running as dotnet tool - Shows "aspire update --self" for native binary - Shows "dotnet tool update aspire.cli" for dotnet tool - Updated Designer.cs for resource strings - Added test to verify update message includes command Co-authored-by: davidfowl <95136+davidfowl@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update Aspire CLI upgrade message with instructions
Add update instructions to CLI version notification message
Oct 26, 2025
Member
|
@copilot Centralize IsRunningAsDotNetTool logic, it exists in UpdateCommand, make it a shared helper. |
Move duplicate IsRunningAsDotNetTool method from UpdateCommand and ConsoleInteractionService to a shared static method in CliHostEnvironment. This reduces code duplication and provides a single source of truth for detecting whether the CLI is running as a dotnet tool or native binary. Co-authored-by: davidfowl <95136+davidfowl@users.noreply.github.com>
Contributor
Author
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Update CLI version notification messages to include update instructions
Summary:
This PR updates the CLI version notification to show specific update instructions based on how the CLI is running.
Changes:
Expected Output:
When running as dotnet tool:
When running as native binary:
Implementation Details:
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.