0

I've been looking for a C++ library for reading (not running) C# assemblies. What I'm looking for is the equivalent of C#'s System.Assembly.LoadFrom(path) method. I've looked for a long time and I can't seem to find anything, and I definitely don't have the patience (or knowledge) to write my own. I know dotnet/coreclr is written in c++ and has internal calls for loading C# assemblies, but I don't know if it's possible to use it. I've also looked into the Win32 C++ API, but I don't really see anything that could help me there. The library needs to be able to load any cli-compliant assembly and give me all the types, fields, methods, il-bytecode, metadata, etc. I've looked into the possibility of calling System.Assembly.LoadFrom(path) from C# and somehow passing the information to c++, but it's very finicky and slow.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.