We are looking to permit 3rd parties to upload compiled .NET.Core assemblies as plugins into custom AssemblyLoadContext
s.
But the assembly needs the for security issues first, and if it fails, dumping the whole context.
For example:
System.IO
for example.new()
so we can log what they are instantiating via an override of IServiceDepency
?Preferably, we'd like to do the inspecting with framework and/or freely available packages, rather than as per: Inspecting contents of compiled assemblies
Thank you!
Roslyin is a compiler technology and can't decompile compiled code.
You can look at the compiler code and learn the IL generation patterns to decompile the code or use something like ILSpy.