Skip to content

System.Diagnostics.TraceSource should not be RID specific #16896

@davidfowl

Description

@davidfowl

I don't know the reasoning behind why we chose to compile this thing twice but AFAIK there's a dependency on getting the PID? I'm guess we didn't want to use Process since we're hoping for a more xplat friendly process API. Whatever the reason, runtime light up would be a much better solution here since all of the IL is duplicated in the output of a portable application and the need to cross compile is a very small part of the code.

https://github.com/dotnet/corefx/blob/master/src/System.Diagnostics.TraceSource/src/System/Diagnostics/TraceEventCache.Unix.cs

https://github.com/dotnet/corefx/blob/master/src/System.Diagnostics.TraceSource/src/System/Diagnostics/TraceEventCache.Windows.cs

/cc @stephentoub @ericstj @weshaggard

Metadata

Metadata

Assignees

Labels

packagingRelated to packaging

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions