Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit e809449

Browse files
authored
Use AppContext.BaseDirectory instead of AppDomain.CurrentDomain.BaseDirectory when initializing EventPipeController. (#20467)
1 parent 614fe94 commit e809449

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mscorlib/src/System/Diagnostics/Eventing/EventPipeController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ internal static void Initialize()
9494
private EventPipeController()
9595
{
9696
// Set the config file path.
97-
m_configFilePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, BuildConfigFileName());
97+
m_configFilePath = Path.Combine(AppContext.BaseDirectory, BuildConfigFileName());
9898

9999
// Initialize the timer, but don't set it to run.
100100
// The timer will be set to run each time PollForTracingCommand is called.

0 commit comments

Comments
 (0)