iloader | iBoot loader by xerub : https : //xerub | Awesome List library
kandi X-RAY | iloader Summary
kandi X-RAY | iloader Summary
iBoot loader by xerub:
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of iloader
iloader Key Features
iloader Examples and Code Snippets
Community Discussions
Trending Discussions on iloader
QUESTION
there are many similar questions like this one. But they are all years old and dont work (anymore?) today.
So here is my question: I want to load a c# assembly into memory and find out if it has types included that match an interface i want to use. If the assembly has this class type included, i reference and use it in my main application. If not, i want to unload the dll and then be able to delete the file (from my main application or by hand while the application is running).
My first implementation simply ommitted the appdomain approach, but it worked (without deleting or replacing assembly files). Then I tried to load the assemblies as described in various examples. But with none i was able to delete the not needed assembly files from disk.
Either it is simply not possible to unload and delete assemblies when they were referenced in an application or i am doing something wrong. This is what i tried at last:
...ANSWER
Answered 2017-Oct-10 at 08:24I found that Assembly.LoadFile(...)
will lock the file, even beyond the point of unloading the AppDomain.
My solution is to first load the assembly bytes into memory, and then load it into the AppDomain:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install iloader
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page