Repackaged and published certain runtime targets #76790
Unanswered
crazycrank
asked this question in
General
Replies: 1 comment
-
devloop has a package called |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
I'm not sure if this is the right place for this, so please feel free to redirect me if necessary.
I've been working with analyzers and source generators the past couple of weeks, and what I struggled the most with was how to correctly pack these, so end users won't be having any issues and warnings whatsoever, and I just couldn't figure it out.
In the end I looked at dotnet/runtime repository, specifically at the System.Text.Json project, and with the help of the GetAnalyzerPackFiles target (defined here) and the IncludeAnalyzersInPackage combined with the AnalyzerReference tag (defined here) I was finally able to get it to work.
Since I've seen dozens of posts and issues struggling with similar issues as me, I decided it would be a good idea if these targets would be available as nuget packages for the public and quickly created two nuget packages for use:
I wanted to make sure that it's okay to release the packages with the source code from this repository. The packages are released under the MIT license and it's mentioned that the sourcecode is from the dotnet/runtime repo.
If this is a problem, I will immediatly remove the projects again and make the repo private. Otherwise I hope to be able to help other members of the community improve their experience in write their own analyzers and source generators.
Best,
Max
Beta Was this translation helpful? Give feedback.
All reactions