Update .NET 10, System.CommandLine 2.0.0, fix warnings#2677
Merged
JamesNK merged 1 commit intogrpc:masterfrom Nov 13, 2025
Merged
Update .NET 10, System.CommandLine 2.0.0, fix warnings#2677JamesNK merged 1 commit intogrpc:masterfrom
JamesNK merged 1 commit intogrpc:masterfrom
Conversation
db086d0 to
7c1d006
Compare
adityamandaleeka
approved these changes
Nov 12, 2025
There was a problem hiding this comment.
Pull Request Overview
This PR updates the project from .NET 10 preview to the release version and migrates from System.CommandLine beta to version 2.0.0, fixing associated warnings and API breaking changes.
Key Changes:
- Updated Docker base images from .NET 10 preview to release versions
- Migrated System.CommandLine API from beta to 2.0.0 (Option constructors, SetHandler→SetAction, AddOption→Add)
- Replaced IConsole with custom ConsoleService abstraction
Reviewed Changes
Copilot reviewed 26 out of 26 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| Dockerfiles | Updated base images from 10.0-preview to 10.0 release |
| global.json | Updated SDK version from preview to 10.0.100 release |
| Directory.Packages.props | Updated package versions to release versions and System.CommandLine to 2.0.0 |
| Program.cs files | Migrated to System.CommandLine 2.0.0 API (SetAction, ParseResult, GetValue) |
| Command classes | Updated to use ConsoleService instead of IConsole, migrated Option/Argument constructors |
| Test files | Updated test assertions and console mocking to work with new API |
| ConsoleService.cs | New custom console abstraction replacing System.CommandLine.IConsole |
| ListCommand.cs | Replaced table rendering with simple text output |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
8560b9f to
ba4da77
Compare
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.
No description provided.