Skip to content
Discussion options

You must be logged in to vote

The consumer library should add a reference to the source generator, and sets output type to Analyzer. Check how unit test of System.Text.Json uses the generator:

<ProjectReference Include="..\..\gen\System.Text.Json.SourceGeneration.Roslyn4.4.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" SetTargetFramework="TargetFramework=netstandard2.0" />

Replies: 1 comment

Comment options

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