예제 #1
0
        public void Create_CrossAppDomain()
        {
            var app = new CrossAppDomain("Init App");
            app.AppDomain.SetupInformation.PrivateBinPath = TestContext.TestDeploymentDir;
            app.AppDomain.SetupInformation.ApplicationBase = TestContext.TestDeploymentDir;
            app.AppDomain.SetupInformation.ApplicationBase = TestContext.TestDeploymentDir;
            //app.Execute(typeof(Program).Assembly.FullName, typeof(Program).FullName);

            app.AppDomain.ExecuteAssemblyByName(typeof(Program).Assembly.FullName);
        }
예제 #2
0
        public void Create_CrossAppDomain()
        {
            var app = new CrossAppDomain("Init App");

            app.AppDomain.SetupInformation.PrivateBinPath  = TestContext.TestDeploymentDir;
            app.AppDomain.SetupInformation.ApplicationBase = TestContext.TestDeploymentDir;
            app.AppDomain.SetupInformation.ApplicationBase = TestContext.TestDeploymentDir;
            //app.Execute(typeof(Program).Assembly.FullName, typeof(Program).FullName);

            app.AppDomain.ExecuteAssemblyByName(typeof(Program).Assembly.FullName);
        }