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

Do not lock files when loading assembly #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

laymain
Copy link

@laymain laymain commented Apr 14, 2020

Hi,

I'm working on a mod that enables hot reloading other mods, but we cannot overwrite .dll files
because they are currently locked by Partiality due to the use of Assembly.LoadFrom(...).

The workaround is to load assembly from read file bytes, the counterpart is that the loaded
assembly does not have a Location anymore, if someone cares about.

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

Successfully merging this pull request may close these issues.

1 participant