Load/Unload assemblies

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Lloyd Sheen

    #1

    Load/Unload assemblies

    I am having trouble gettting an assembly loaded with Assembly.LoadFr om.

    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.unloa d. This does not free up the
    dll.

    Any ideas??

    Lloyd Sheen


Working...