Repository navigation
[release/7.0] Fix DiagnosticSource to work with NativeAOT (#76109) - #78372
MichalStrehovsky wants to merge 1 commit into
Conversation
MichalStrehovsky
commented
Nov 15, 2022
* Fix DiagnosticSource to work with NativeAOT There were 2 problems: 1. The use of MakeGenericType doesn't work when a property is a ValueType. An app will crash when a listener is enabled and DiagnosticSourceEventSource tries writing values. 2. The properties on KeyValuePair were not being preserved correctly, so the Arguments of the DiagnosticSourceEventSource methods were not being serialized correctly. Add test (and infrastructure) to ensure DiagnosticSource works in a NativeAOT app Fix dotnet#75945 * Enable new NativeAotTests in CI - Only run them in Release configuration - Suppress IL2026 warning * Don't run NativeAot published app tests on OSX since it isn't supported Set EventSourceSupport only on the projects that need it.
|
Note regarding the This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, to please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change. |
|
Tagging subscribers to this area: @tarekgh, @tommcdon, @pjanotti Issue Details
|
|
@MichalStrehovsky please fill out the template and request approval from @jeffschwMSFT. Once approved, please send an email to Tactics requesting approval and add the |
|
Going to use the other: PR #76109 (comment) |