Load Assembly in New AppDomain without loading it in Parent AppDomain

后端 未结 2 1234
你的背包
你的背包 2020-12-25 14:15

I am attempting to load a dll into a console app and then unload it and delete the file completely. The problem I am having is that the act of loading the dll in its own App

2条回答
  •  感动是毒
    2020-12-25 14:57

    OK so I solved my own issue here. Apparently if you call AppDomain.Load it will register it with your parent AppDomain. So simply enough the answer is not to reference it at all. This is the link to a site that shows how to set this up properly.

    https://bookie.io/bmark/readable/9503538d6bab80

提交回复
热议问题