Configure the application domain setup information : AppDomainSetup « Assembly « C# / CSharp Tutorial






using System;

class MainClass
{
    public static void Main()
    {
        AppDomainSetup setupInfo = new AppDomainSetup();


        setupInfo.ApplicationBase = @"C:\MyRootDirectory";
        setupInfo.ConfigurationFile = "MyApp.config";
        setupInfo.PrivateBinPath = "bin;plugins;external";

        AppDomain newDomain = AppDomain.CreateDomain("My New AppDomain", null, setupInfo);

    }
}








12.2.AppDomainSetup
12.2.1.Configure the application domain setup information