我想动态加载一个或多个DLL,以便它们以与我的主应用程序不同的安全性或基本路径运行。如何将这些DLL加载到单独的AppDomain中并从中实例化对象? 最佳答案 更具体地说AppDomaindomain=AppDomain.CreateDomain("Newdomainname");//DootherthingstothedomainlikesetthesecuritypolicystringpathToDll=@"C:\myDll.dll";//FullpathtodllyouwanttoloadTypet=typeof(Type