When I drop a roslyn analyzer dll into the assets folder, Unity reports that it will not be loaded because of unresolved references (Microsoft.CodeAnalysis).![dll import error][1]
It does not prevent the analyzer from running correctly though, and an analyzer reference is added to the project. I assume the error just persists because I can not use the assembly output the regular, non-analyzer way, which I of course do not need for an analyzer/generator plugin.
I get the same result from any analyzer/generator I'm trying to add, also when following the guide in the manual: https://docs.unity3d.com/Manual/roslyn-analyzers.html
So I'm simply wondering, how can I get rid of this error popping up on each compilation.
I've read I can look up and throw all the Microsoft DLLs (an the correct version of them) into my assets folder, but that does not seem like a feasible solution, since I do not need all those DLLs in a game, and the analyzer works fine without that.
Also I don't know about licensing issues, if I would like to distribute an analyzer/generator on the asset store.
Any insights on that topic would be much appreciated!
[1]: /storage/temp/195433-screenshot-2022-04-23-173615.png
↧