Skip to content

Roslyn RS1038 Fix#140

Merged
feO2x merged 2 commits into
mainfrom
139-roslyn-rs1038
Jul 13, 2026
Merged

Roslyn RS1038 Fix#140
feO2x merged 2 commits into
mainfrom
139-roslyn-rs1038

Conversation

@feO2x

@feO2x feO2x commented Jul 13, 2026

Copy link
Copy Markdown
Owner

Closes #139

PR strictly follows the corresponding plan.

feO2x added 2 commits July 13, 2026 06:38
Signed-off-by: Kenny Pflug <kenny.pflug@live.de>
Signed-off-by: Kenny Pflug <kenny.pflug@live.de>
@feO2x feO2x requested a review from Copilot July 13, 2026 05:31
@feO2x feO2x self-assigned this Jul 13, 2026
@feO2x feO2x added the chore label Jul 13, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Resolves Roslyn warning RS1038 by splitting compiler-loaded analyzers from IDE-only code fixes, aligning Light.GuardClauses’ internal Roslyn tooling with the standard analyzer/code-fix assembly separation pattern.

Changes:

  • Updated Light.GuardClauses.InternalRoslynAnalyzers to reference compiler-layer Roslyn (Microsoft.CodeAnalysis.CSharp) instead of Workspaces.
  • Introduced Light.GuardClauses.InternalRoslynAnalyzers.CodeFixes project containing the two code fix providers and pinned its Workspaces dependency to 4.11.0 via VersionOverride.
  • Wired the new CodeFixes assembly into the product project as an analyzer reference, updated the analyzer tests project reference, updated central package versioning documentation, and added the new project to the solution.

Reviewed changes

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

Show a summary per file
File Description
tools/analyzers/Light.GuardClauses.InternalRoslynAnalyzers/Light.GuardClauses.InternalRoslynAnalyzers.csproj Removes Workspaces dependency and switches to compiler-layer Microsoft.CodeAnalysis.CSharp to eliminate RS1038.
tools/analyzers/Light.GuardClauses.InternalRoslynAnalyzers.CodeFixes/Light.GuardClauses.InternalRoslynAnalyzers.CodeFixes.csproj New CodeFixes project with Workspaces pinned to 4.11.0 and a project reference to the analyzer assembly.
tools/analyzers/Light.GuardClauses.InternalRoslynAnalyzers.CodeFixes/ParameterNameXmlCommentFix.cs Moves/introduces the parameter-name XML comment code fix into the IDE-only project.
tools/analyzers/Light.GuardClauses.InternalRoslynAnalyzers.CodeFixes/MessageXmlCommentFix.cs Moves/introduces the message XML comment code fix into the IDE-only project.
tests/Light.GuardClauses.InternalRoslynAnalyzers.Tests/Light.GuardClauses.InternalRoslynAnalyzers.Tests.csproj Repoints tests to the CodeFixes project so Workspaces types are available without relying on the analyzer assembly.
src/Light.GuardClauses/Light.GuardClauses.csproj Adds the CodeFixes project as an analyzer reference alongside the existing analyzer reference.
Light.GuardClauses.sln Adds the new CodeFixes project and places it under the existing tools/analyzers solution folder hierarchy.
Directory.Packages.props Removes project-conditional override, documents the Roslyn/SDK pin rationale, and centrally pins Microsoft.CodeAnalysis.CSharp to 4.11.0.
ai-plans/0139-roslyn-RS1038-fix.md Adds the tracked plan documenting rationale, acceptance criteria, and the implemented split approach.

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

@feO2x feO2x merged commit 469ad6e into main Jul 13, 2026
2 checks passed
@feO2x feO2x deleted the 139-roslyn-rs1038 branch July 13, 2026 05:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Roslyn RS1038 Fix

2 participants