How can I add an Source Generator to a C# net5 project as nuget package?
To add a Project as Source Generator the following code does the job:
<ItemGroup>
<ProjectReference Include="..\xyz.SourceGenerators\xyz.SourceGenerators.csproj"
OutputItemType="Analyzer"
ReferenceOutputAssembly="false"
SetTargetFramework="TargetFramework=netstandard2.0" />
</ItemGroup>
However I'm looking for the XML PackageReference to add a nuget Package as Source Generator.