Source Generators In Nuget Packages
I’m working on a source generator and initially thought it wasn’t working. I was adding it to another project via a private nuget package. I ended up including a direct project reference and walla, the generator started kicking in and shows up in the analyzers.
I cracked open the Nuget package and noticed there was no lib folder.
So what’s the correct way to publish a nuget package for a source generator project? And what’s the correct way to include said nuget into another project.
I cracked open the Nuget package and noticed there was no lib folder.
So what’s the correct way to publish a nuget package for a source generator project? And what’s the correct way to include said nuget into another project.