You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get the following error: System.TypeLoadException: VTable setup of type System.Text.Json.Utf8JsonWriter failed
When using Needle Console alongside LaunchDarkly ClientSdk which has dependency to the following the error occurs.
When Needle is removed from the project, everything functions correctly. I have noticed some (Demystify-)System dependencies within Needle - could this be the issue? I'm unsure how to resolve this issue and would appreciate your assistance.
We are targeting .Net Standard 2.1.
BR,
Linnea
The text was updated successfully, but these errors were encountered:
It is during runtime, yes.
I am using 6000.0.5f1
Yes, I have a license.
I did ask Unity about this, and this is what support wrote (edited to shorter version):
[...] our .net team suspect that the cause is likely due to a duplication of dlls within the project. They pointed out that some of the dlls that System.Text.Json depends upon may resolve to different things depending on if Net Standard 2.0 or Net Standard 2.1 is targeted. For Net Standard 2.0, those assemblies contain implementations, but for Net Standard 2.1 they contain compatibility shims that forward their calls to code that now exists within the 2.1 runtime. This means that including the Net Standard 2.0 dependencies when targeting 2.1 in Unity can cause duplicate implementations which would lead to the vtable error you are seeing.
System.Text.Json does point to Standard 2.0, while we're targeting 2.1.
Hope this helps. Otherwise, let me know if I can do anything.
BR,
Linnea
Hello,
I get the following error:
System.TypeLoadException: VTable setup of type System.Text.Json.Utf8JsonWriter failed
When using Needle Console alongside LaunchDarkly ClientSdk which has dependency to the following the error occurs.
When Needle is removed from the project, everything functions correctly. I have noticed some (Demystify-)System dependencies within Needle - could this be the issue? I'm unsure how to resolve this issue and would appreciate your assistance.
We are targeting .Net Standard 2.1.
BR,
Linnea
The text was updated successfully, but these errors were encountered: