I’m trying to explore .NET 8.0 exe file. When I try to load it with Assembly.LoadFrom
or Assembly.LoadFile
I’m getting Bad IL format. The format of the file ‘<file_path>.exe’ is invalid. But if I change <OutputType>
from Exe to Library all works fine. Is it possible to open exe file as .NET assembly?
4