This repository has been archived by the owner on Oct 6, 2023. It is now read-only.
Bug: Nullable context in Json.NET 12.0.3 crashes testing inside Unity #37
Labels
bug
Something isn't working
Description
Newtonsoft.Json 12.0.3 introduced usage of the nullable context. It works fine when building the package thanks to the
Microsoft.Net.Compilers.Toolset
NuGet package that can compile to .NET Framework even if the code contains nullable references syntax.Less so lucky with Mono inside Unity.
Expected behavior
Mono compiles the Newtonsoft.Json.Tests code to then let Unity Test Framework run all the NUnit tests.
Actual behavior
Syntax error.
Full logs:
https://app.circleci.com/jobs/github/jilleJr/Newtonsoft.Json-for-Unity/468
Details
Host machine OS running Unity Editor 👉 Linux
Unity build target 👉 Linux (Mono)
Newtonsoft.Json-for-Unity package version 👉 12.0.301
I was using Unity version 👉 2019.2.11f1, 2018.4.14f1
The text was updated successfully, but these errors were encountered: