From d032f3e16d51f5d93af6c4a8aefdc7fbda7828c1 Mon Sep 17 00:00:00 2001 From: Jared Parsons Date: Wed, 19 Aug 2015 13:57:42 -0700 Subject: [PATCH] Don't use AppDomains This is unnecessary overhead in the worker and makes the runner significantly harder to debug. --- xunit.runner.worker/DiscoverUtil.cs | 2 +- xunit.runner.worker/RunUtil.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xunit.runner.worker/DiscoverUtil.cs b/xunit.runner.worker/DiscoverUtil.cs index 7c24598..3f397b4 100644 --- a/xunit.runner.worker/DiscoverUtil.cs +++ b/xunit.runner.worker/DiscoverUtil.cs @@ -51,7 +51,7 @@ namespace xunit.runner.worker { using (AssemblyHelper.SubscribeResolve()) using (var xunit = new XunitFrontController( - useAppDomain: true, + useAppDomain: false, assemblyFileName: fileName, diagnosticMessageSink: new MessageVisitor(), shadowCopy: false)) diff --git a/xunit.runner.worker/RunUtil.cs b/xunit.runner.worker/RunUtil.cs index cfc6909..3402a9c 100644 --- a/xunit.runner.worker/RunUtil.cs +++ b/xunit.runner.worker/RunUtil.cs @@ -63,7 +63,7 @@ namespace xunit.runner.worker using (AssemblyHelper.SubscribeResolve()) using (var xunit = new XunitFrontController( assemblyFileName: assemblyPath, - useAppDomain: true, + useAppDomain: false, shadowCopy: false, diagnosticMessageSink: new MessageVisitor())) using (var writer = new BinaryWriter(stream, Constants.Encoding, leaveOpen: true))