I am having trouble gettting an assembly loaded with Assembly.LoadFrom.
I can get the assembly call the method I need to call. Now I want to unload
the assembly. I need to do this so that the user can (thru my app) create a
new version of the assembly. The app will call a predetermined method (sort
of an add-in) and then exit. At this point if the output is not what the
user wants , the GUI will allow the user to edit the source code that
created the assembly and recompile it. Not being able to unload means that
the compile will fail as it attempts to create the DLL.
I have tried creating an AppDomain, adding the assembly and then after
calling the method using the appdomain.unload. This does not free up the
dll.
Any ideas??
Lloyd Sheen
Dmitriy Krasnikov - 11 May 2004 16:16 GMT
>I am having trouble gettting an assembly loaded with Assembly.LoadFrom.
>
[quoted text clipped - 13 lines]
>
>Lloyd Sheen
Don't use LoadFrom use Load. Read the file to byte[], close stream and
load byte[]. Then you can delete the file or overwrite it.