Has the CommunityToolkit team considered releasing the common analyzer code as a package? #686
-
As per the title, the code I'm referring to would be that which is reusable/common and could be applied to any analyzer project. That would include such things as the contents of I ask because I just created an analyzer (source generator with diagnostic) and found the code in those namespaces quite useful, yet internal. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I would've loved to do this, but unfortunately you cannot reference NuGet packages from source generators and analyzers at this time. I mean you can (kinda) but it's very clunky, can cause problems, and there's no official tooling support for it. When/if that was available, it's definitely something we'd consider 🙂 |
Beta Was this translation helpful? Give feedback.
I would've loved to do this, but unfortunately you cannot reference NuGet packages from source generators and analyzers at this time. I mean you can (kinda) but it's very clunky, can cause problems, and there's no official tooling support for it. When/if that was available, it's definitely something we'd consider 🙂