Skip to content

[Tech Debt] Remove TraceWrapper and call System.Diagnostics.Trace directly — good to have #5984

@gladjohn

Description

@gladjohn

Task type

Tech Debt — Good to have

Context

TraceWrapper is a ~7-line class that wraps System.Diagnostics.Trace.WriteLine behind a #if !NETSTANDARD guard. It has effectively 0-1 active consumers. The guard can be moved to the call site or removed if netstandard is no longer targeted.

Priority

🟢 Low priority / Good to have — Trivial removal. Near-zero risk.

Proposed fix

  1. Find all callers of TraceWrapper
  2. Replace with direct System.Diagnostics.Trace.WriteLine calls (with #if guard if still needed)
  3. Delete TraceWrapper.cs
  4. Verify build passes on all TFMs

Risk assessment

🟢 Very low — Minimal code, minimal consumers.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions