Skip to content

Conversation

@walterlv
Copy link
Member

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 adds compiler error reporting when the target compiler doesn't meet analyzer and source generator requirements. The changes enforce stricter build behavior by treating certain analyzer-related warnings as errors.

Key changes:

  • Added warning-as-error configuration for analyzer compatibility issues (CS8785, CS9057)
  • Fixed typo in MSBuild property name (WarningAsErrorsWarningsAsErrors)

Reviewed Changes

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

File Description
src/DotNetCampus.CommandLine/Package/build/Package.props Added WarningsAsErrors configuration to treat analyzer warnings CS8785 and CS9057 as errors
Directory.Build.props Fixed typo in property name and updated comment from Chinese to English

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

@lindexi lindexi merged commit 70db3c7 into main Nov 1, 2025
3 checks passed
@lindexi lindexi deleted the t/walterlv/version branch November 1, 2025 01:57
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.

3 participants