Remove DEBUG-only TraceSource/Switch usage from corefx by stephentoub · Pull Request #41177 · dotnet/corefx (original) (raw)
A lot of TraceSource/Switch usage in corefx exists only to enable some optional DEBUG-only tracing and asserts, which haven't been used in a very long time (if ever in corefx), but some of it is keeping these types from being trimmed in a default MVC app (even if the call sites are conditional, many of the switches themselves are not).
cc: @krwq, @Anipik, @safern, @maryamariyan, @divega