Skip to content

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

Open
macsux wants to merge 1 commit intomainfrom
macsux/expose-csproj-visitors
Open

C#: Expose csproj visitor classes for reuse in custom recipes#7324
macsux wants to merge 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

1 participant