Use AppContext.BaseDirectory instead of AppDomain.CurrentDomain.BaseDirectory when...
authorBrian Robbins <brianrob@microsoft.com>
Wed, 17 Oct 2018 20:30:58 +0000 (13:30 -0700)
committerBrian Robbins <brianrob@microsoft.com>
Wed, 17 Oct 2018 20:30:58 +0000 (13:30 -0700)
src/System.Private.CoreLib/src/System/Diagnostics/Eventing/EventPipeController.cs

index 39e6766..782a86a 100644 (file)
@@ -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.