Skip to content

Prevent source generator from using ref assemblies #72374

Discussion options

You must be logged in to vote

Found the answer after spending the whole day trying to figure this out... There is a property that can be set on the consuming project to disable ref assembly usage for all projects that it references, so only one place needs to be updated:

<CompileUsingReferenceAssemblies>false</CompileUsingReferenceAssemblies>

This still affects build performance, although correctness is probably more important, so it sounds like a good tradeoff

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dennis-yemelyanov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant