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

Commit f26b8ee

Browse files
committed
Fix desktop build break
Signed-off-by: dotnet-bot <[email protected]>
1 parent f527526 commit f26b8ee

File tree

1 file changed

+4
-1
lines changed
  • src/System.Private.CoreLib/shared/System/Diagnostics/Tracing

1 file changed

+4
-1
lines changed

src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/EventSource.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4049,8 +4049,12 @@ internal static void AddEventSource(EventSource newEventSource)
40494049
if (!s_EventSourceShutdownRegistered)
40504050
{
40514051
s_EventSourceShutdownRegistered = true;
4052+
#if ES_BUILD_PN
4053+
AppContext.ProcessExit += DisposeOnShutdown;
4054+
#else
40524055
AppDomain.CurrentDomain.ProcessExit += DisposeOnShutdown;
40534056
AppDomain.CurrentDomain.DomainUnload += DisposeOnShutdown;
4057+
#endif
40544058
}
40554059

40564060

@@ -5943,4 +5947,3 @@ public enum ManifestFormats : byte
59435947

59445948
#endregion
59455949
}
5946-

0 commit comments

Comments
 (0)