Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Aug 10, 2025

Update System.CommandLine to 2.0.0-beta6.25358.103

This PR updates the System.CommandLine dependency from 2.0.0-beta4.22272.1 to 2.0.0-beta6.25358.103 and adapts the codebase to handle the API breaking changes introduced in the newer version.

Plan

  • Explore repository structure and understand current System.CommandLine usage
  • Update System.CommandLine version in Directory.Packages.props
  • Identify and fix compilation errors resulting from API changes
  • Apply migration changes based on the System.CommandLine 2.0 migration guide
  • Test the updated command-line interface functionality
  • Ensure all existing tests pass
  • Verify the nbgv tool works correctly with the updated dependency

Current State

The main System.CommandLine usage is in src/nbgv/Program.cs which implements the command-line interface for the nbgv tool. The current implementation uses:

  • Command and Option creation patterns
  • SetHandler methods for command execution
  • CommandLineBuilder for parser configuration

Fixes #1236.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update System.CommandLine to 2.0.0-beta6.25358.103

2 participants