iansmirlis / jni4net

Fast, object oriented, intraprocess bridge between JVM and CLR
https://jni4net.github.io/
1 stars 0 forks source link

Improve dll analysis #8

Open iansmirlis opened 1 year ago

iansmirlis commented 1 year ago

dll signature analysis may have room for improvement. (cecil)?

pavelsavara commented 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 ?

iansmirlis commented 1 year ago

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

pavelsavara commented 12 months ago

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.