Skip to content

Fix actionable build warnings - #181

Merged
chklauser merged 1 commit into
mainfrom
agent/fix-build-warnings
Jul 24, 2026
Merged

Fix actionable build warnings#181
chklauser merged 1 commit into
mainfrom
agent/fix-build-warnings

Conversation

@chklauser

Copy link
Copy Markdown
Owner

Summary

  • remove the redundant System.Text.RegularExpressions test dependency and central version
  • stop explicitly compiling generated resource designer files twice
  • give GetSourcePositionString a non-null extension receiver while retaining nullable source-position equality

Why

The .NET 10 build identified a framework-provided package that can be pruned, resource designer sources that were supplied both by the resource generator and explicit compile items, and a nullable receiver shared by extension methods with different nullability contracts.

This reduces a forced build from 10 warnings to the five generated SymbolBuilder obsolescence warnings that are intentionally deferred.

Impact

Build output is quieter without changing runtime behavior or generated parser code.

Validation

  • dotnet build --nologo --no-restore --no-incremental --consoleLoggerParameters:NoSummary (passes; five intentionally deferred generated CS0618 warnings)
  • dotnet test --nologo --no-build --no-restore --consoleLoggerParameters:NoSummary (1,459 total; 1,456 passed; 3 skipped)
  • dotnet csharpier check . (512 files checked)

@chklauser
chklauser marked this pull request as ready for review July 24, 2026 21:06
@chklauser
chklauser merged commit d71ac34 into main Jul 24, 2026
2 checks passed
@chklauser
chklauser deleted the agent/fix-build-warnings branch July 24, 2026 21:06
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.

1 participant