-
-
Notifications
You must be signed in to change notification settings - Fork 227
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
Having issues with hot reloading and locked DLLs #93
Comments
I don't have a Windows machine to debug this, so help would be appreciated in understanding why this is working on macOS and not Windows.
How do you know this? The log output in the repro you shared just says "because it is being used by another process." |
This may occur in many circumstances. Even an open explorer.exe pointing to that directory may have a lock on files. I think there are some tools like sysinternals process explorer, which can show you who's locking the file. |
I'm on Win10 / VS2019 - does that fit? Think I'm gonna try the sample later. We will see... |
Thanks @Andale-online. I'm eager to hear about the results :) Personally, I do not have VS2019 installed, but I can't see any reason why that should make a difference? I guess the .NET Core runtime/SDK version is the most important? |
Thanks for the report @KatoStoelen - I setup a Windows VM so I could repro, and have prepared a fix: #108. I'm planning to release the fix soon as 0.3.2 |
Thanks for fixing this @natemcmaster - awesome work. I did however stumple upon a similar issue with |
@KatoStoelen - can you open a separate issue for that? I don't think it's currently possible to hot reload unmanaged libraries using AssemblyLoadContext, but we can investigate workarounds. |
Describe the bug
I can't seem to get hot reloading to work. The plugin DLLs are locked by dotnet.exe even with
EnableHotReload = true
.The hot-reload sample in this repository yielded the same results.
Using .NET Core SDK v3.1.100 on Windows.
To Reproduce
Steps to reproduce the behavior:
/samples/hot-reload/run.sh
Expected behavior
The plugin DLL is successfully overwritten and the PluginLoader gets reloaded.
The text was updated successfully, but these errors were encountered: