CreateInstance of a Type in another AppDomain
问题 My scenario is that I have a .net application (let's say a Console App) that creates AppDomains. It then needs to create instances and call methods on Types that are in that AppDomain. Each AppDomain has a specific directory where are it's dependecies should be, which is not under (or even near) the Console Apps directory. Here's my simple code: string baseDirectory = "c:\foo"; // <- where AppDomain's dependecies // set up the app domain AppDomainSetup setup = new AppDomainSetup(); setup