Open iansmirlis opened 1 year ago
main point for me is to not use in-process reflection. And rather treat the input as data. Also Roslyn may have similar DLL/IL parser which could be used as library ?
Yeah dll files will be read as data. I think that cecil is well suited for this purpose. I've never seen roslyn been used for metadata parsing and disassembly of dlls
I think you pass PortableExecutableReference to the CSharpCompilation
and it will be able to provide you with the metadata like ITypeSymbol
and I think there is some resolver too. Never tried it myself, tho.
dll signature analysis may have room for improvement. (cecil)?