EnumFastToStringDotNet
EnumFastToStringDotNet copied to clipboard
Create Nuget Package
I want to publish a Nuget package to make using this generator as easy as possible. The only problem is no one seems to agree on how to configure the project so that the generator gets loaded correctly. I have tried several methods including using the analyzer template and trying a handful of templates/tutorials from GitHub. Nothing has worked for me.
Also, I want the Nuget package to be a different project from the main project.
It's actually not that hard. Here's how we did it in https://github.com/jitbit/MapDataReader/
Check out this file, near the end, how it makes sure it's a source generator package: https://github.com/jitbit/MapDataReader/blob/main/MapDataReader/MapDataReader.csproj
Also, you need to target net standard 2.0 I believe
@alex-jitbit Thanks! That's what I was having trouble figuring out.