Open MichalStrehovsky opened 1 year ago
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas See info in area-owners.md if you want to be subscribed.
Author: | MichalStrehovsky |
---|---|
Assignees: | - |
Labels: | `area-NativeAOT-coreclr` |
Milestone: | Future |
When
EventSourceSupport
MSBuild property is set to true, the build currently errors out. It is possible to bypass this by setting_SuppressNativeLibEventSourceError
property to true but there are known issues. It is not recommended to ship native libraries like this unless one can make sure no other native library (or a CoreCLR instance) with EventSourceSupport gets loaded into the process. Users might consider shipping two versions of their native library DLL and only use the one with EventSourceSupport enabled when troubleshooting a specific issue.This is a tracking uber issue that groups the known existing problems:
Our guidance for
EventSource/EventPipe
with native AOT shared libraries is as follows,EventSourceSupport
enabled when troubleshooting a specific issue related to shared libraries.EventSourceSupport
enabled will always win even if the process has other native AOT shared libraries withEventSourceSupport
enabled.win
to emit traces. Traces from other libraries will not be seen.EventPipe
in an orderly manner, causing a corrupted trace file.Given these challenges, it's probably best to keep the current warnings we have for shared library around
EventSource
support.