Skip to content

C#: Expose csproj visitor classes for reuse in custom recipes#7324

Merged
macsux merged 1 commit intomainfrom
macsux/expose-csproj-visitors
Apr 10, 2026
Merged

C#: Expose csproj visitor classes for reuse in custom recipes#7324
macsux merged 1 commit intomainfrom
macsux/expose-csproj-visitors

Conversation

@macsux
Copy link
Copy Markdown
Contributor

@macsux macsux commented Apr 8, 2026

Summary

  • Extract private inner visitor classes from 5 csproj manipulation recipes into standalone public top-level classes
  • Recipes now delegate to these public visitors, preserving identical behavior
  • Enables direct use of AddNuGetPackageReferenceVisitor, ChangeDotNetTargetFrameworkVisitor, FindNuGetPackageReferenceVisitor, RemoveNuGetPackageReferenceVisitor, and UpgradeNuGetPackageVersionVisitor in custom recipe edit phases

Test plan

  • All 45 existing C# recipe tests pass
  • Build succeeds with no warnings

Extract private inner visitor classes from csproj manipulation recipes
into standalone public classes so they can be used directly in custom
recipe edit phases.
@github-project-automation github-project-automation Bot moved this to In Progress in OpenRewrite Apr 8, 2026
@macsux macsux merged commit 9d86df1 into main Apr 10, 2026
1 check passed
@macsux macsux deleted the macsux/expose-csproj-visitors branch April 10, 2026 15:48
@github-project-automation github-project-automation Bot moved this from In Progress to Done in OpenRewrite Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant