Skip to content

[Dependency] source generator part 2#6550

Open
PJB3005 wants to merge 8 commits intospace-wizards:masterfrom
PJB3005:26-05-05-ioc-source-gen-apply-2
Open

[Dependency] source generator part 2#6550
PJB3005 wants to merge 8 commits intospace-wizards:masterfrom
PJB3005:26-05-05-ioc-source-gen-apply-2

Conversation

@PJB3005
Copy link
Copy Markdown
Member

@PJB3005 PJB3005 commented May 5, 2026

#6549 merge first

PJB3005 added 2 commits May 5, 2026 05:15
No more reflection, no more codegen at runtime

Also various changes to Roslyn helpers to make this easier to write.

Requires all types with dependencies to be partial and not have readonly dependency fields. An analyzer enforces this at warning level, the previous injection strategies have remained in the code *for now* as a fallback.

No fallback is available for [field: Dependency] properties, due to a Roslyn bug.

Code Fixes exist. We love Roslyn
@PJB3005 PJB3005 requested a review from DrSmugleaf as a code owner May 5, 2026 03:36
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.

1 participant