lundi 30 août 2021

Invoke method of analyzed assembly from a Roslyn Code Analyzer

I have a C# roslyn code analyzer that needs to analyze the usage scenarios of generic method invocations of a given class. I am gathering all the references to the method, the generic type parameters and so forth and then want to invoke the methods (via reflection) to analyze the output to report potential diagnostics in the analyzer. Is there a way from a Roslyn-Compilation.Assembly to a System.Reflection.Assembly? If not, is there any other way?

The Analyzer project and the solution to be analyzed are under my control.

Thanks!





Aucun commentaire:

Enregistrer un commentaire