Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does IL-repack support for hot reload #386

Open
SoggyBottomBoy opened this issue Jan 22, 2025 · 3 comments
Open

Does IL-repack support for hot reload #386

SoggyBottomBoy opened this issue Jan 22, 2025 · 3 comments

Comments

@SoggyBottomBoy
Copy link

I'm assuming there is no way for IL-repack to support hot reload?

I just want to make sure I'm not missing something or should expect hot reload to work. My assumption is no it won't work.

@KirillOsenkov
Copy link
Collaborator

As far as I can tell .dlls produced by ILRepack should behave the same as other .dlls in terms of HotReload, I'm honestly not sure why HotReload wouldn't work for these.

@SoggyBottomBoy
Copy link
Author

SoggyBottomBoy commented Jan 23, 2025

Here is a simple example if you break on line 4 and uncomment line 5 and save hot reload will fail.
Image

https://github.com/[SoggyBottomBoy/ILRepackHotReload](https://github.com/SoggyBottomBoy/ILRepackHotReload)

And if I follow the settings and allow source to be different from original the new code is not run
Image

And the HotReload output

18:49 30.92 ILRepackHotReload (ILRepackHotReload):16012: Attaching to process.
18:49 30.92 Starting session.
18:49 30.94 ILRepackHotReload (4): Hot Reload session started.
18:49 39.67 Checking for code updates...
18:49 39.73 Applying code updates...
18:49 39.73 ILRepackHotReload (4): Sending updates to running application.
18:49 39.73 Code changes were successfully applied.
18:49 39.97 ILRepackHotReload (4): Updates applied successfully.

@KirillOsenkov
Copy link
Collaborator

I appreciate the repro, but unfortunately I don't have the capacity to investigate this right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants