jeudi 5 juillet 2018

Get all referenced assemblies from a given assembly (using Roslyn or via reflection)

I am using Roslyn to do some code analysis on a solution and some of the projects within the solution have references to 3rd party assemblies.

Is there any way to retrieve the list of referenced assemblies, either via Roslyn or via reflection?

E.g. I have Solution = {ProjA, ProjB, ProjC} and ProjC references 3rd party assemblies = {3rdX, 3rdY} => I want to get 3rdX and 3rdY assemblies.





Aucun commentaire:

Enregistrer un commentaire