Skip to content

Conversation

@bart-vmware
Copy link
Owner

No description provided.

Copy link

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 modernizes the project by updating to .NET 10 and migrating from the beta version of System.CommandLine to the stable 2.0.0 release. The migration includes API changes required for compatibility with the stable library release.

  • Updated target framework from .NET 9.0 to .NET 10.0
  • Migrated System.CommandLine from beta (2.0.0-beta4.22272.1) to stable (2.0.0) with corresponding API changes
  • Updated dependent packages (Microsoft.CodeAnalysis 4.12.0 → 4.14.0, SonarAnalyzer.CSharp to 10.15.0.120848)
  • Fixed output file extension handling in NormalizeCommand to preserve the original file extension

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/SonarRulesetTool.csproj Updated target framework to net10.0 and upgraded all package references to newer versions
src/Program.cs Refactored to use new System.CommandLine API with explicit Parse/InvokeAsync pattern and renamed Register to Create
src/Commands/NormalizeCommand.cs Migrated to stable System.CommandLine API using property initializers, SetAction instead of SetHandler, and fixed output file extension logic
src/Commands/ConvertCommand.cs Migrated to stable System.CommandLine API using property initializers and SetAction instead of SetHandler
src/CommandArgumentParser.cs Updated error reporting to use AddError method instead of ErrorMessage property

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@bart-vmware bart-vmware marked this pull request as ready for review November 14, 2025 14:07
@bart-vmware bart-vmware merged commit f5d57ac into main Nov 14, 2025
5 of 6 checks passed
@bart-vmware bart-vmware deleted the update-net10 branch November 14, 2025 14:07
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.

2 participants