Can't open the .NET bundle file (R2R).
Same as https://github.com/icsharpcode/ILSpy/issues/3197 but decompile r2r
@cshung @eduardo-vp It looks like the ReadyToRunReader expects the file to be processed to exist on disk, which is not true for bundles. The entries of a bundle are handled in memory only and I think you may have to use PEReader.GetEntireImage() instead. Is this something you can change?
Thanks for the bug report @wwh1004.
@siegfriedpammer, I think you are right that we will need to change the ReadyToRunReader such that it accepts the image content from the constructor instead of reading it from file system directly.
With a hack, I am able to get ReadyToRun to work with bundles.
There will be some changes on both sides (inside the package, I need to get it to accept the content from the constructor), and outside the package, the ILSpy.ReadyToRun plugin need to get the content available for it.
I will send a PR for it when I can.
- https://github.com/dotnet/runtime/pull/112541
- https://github.com/icsharpcode/ILSpy/pull/3398
Thank you for your fast response!