sentry-unity icon indicating copy to clipboard operation
sentry-unity copied to clipboard

Assembly Alias causes `System.Text.Json` exception

Open bitsandfoxes opened this issue 5 months ago • 3 comments

Steps to reproduce:

  1. Build the SDK with TFM netstandard2.1 (i.e. using Unity 2022 or newer)
  2. Run the aliasing tool
  3. Attempt to capture an error, session, transaction
  4. Observe the following error while the SDK attempts to serialize an envelope
TypeLoadException: VTable setup of type System.Text.Json.Utf8JsonWriter failed

This does not happen when skipping the aliasing step.

bitsandfoxes avatar Aug 27 '24 16:08 bitsandfoxes