A
A
Alexander Kovalevich2016-09-06 21:38:04
.NET
Alexander Kovalevich, 2016-09-06 21:38:04

How to programmatically connect a DLL to a VB.Net project and unload it on the fly?

there is a dll for example 123.dll lies in the directory with the exe when the button is pressed the dll is loaded the function is called and unloaded after the function is executed.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2016-09-07
@DeusEx_Machine

Everything is bad with unloading (Assembly.Load loads into the current AppDomain, from which nothing can be unloaded).
If there is no way to dig in the direction of MAF without unloading , you can still look at MEF , it is simpler, but without unloading.
For the lazy ;) example .

R
Rou1997, 2016-09-06
@Rou1997

If the DLL is in IL (.NET) format, thenAssembly.Load

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question