From e7c522f83adb42551e828d67e133362d5a1cebdd Mon Sep 17 00:00:00 2001 From: Brian Robbins Date: Wed, 17 Oct 2018 13:30:58 -0700 Subject: [PATCH] Use AppContext.BaseDirectory instead of AppDomain.CurrentDomain.BaseDirectory when initializing EventPipeController. --- .../src/System/Diagnostics/Eventing/EventPipeController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/System.Private.CoreLib/src/System/Diagnostics/Eventing/EventPipeController.cs b/src/System.Private.CoreLib/src/System/Diagnostics/Eventing/EventPipeController.cs index 39e6766..782a86a 100644 --- a/src/System.Private.CoreLib/src/System/Diagnostics/Eventing/EventPipeController.cs +++ b/src/System.Private.CoreLib/src/System/Diagnostics/Eventing/EventPipeController.cs @@ -94,7 +94,7 @@ namespace System.Diagnostics.Tracing private EventPipeController() { // Set the config file path. - m_configFilePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, BuildConfigFileName()); + m_configFilePath = Path.Combine(AppContext.BaseDirectory, BuildConfigFileName()); // Initialize the timer, but don't set it to run. // The timer will be set to run each time PollForTracingCommand is called. -- 2.7.4