Die Anwendung läuft problemlos unter Windows und iOS im Debug-Modus und über Visual Studio 2022.
Ich kann sie bereitstellen Ich lade die App im Debug-Modus auf das iPad und sie läuft einwandfrei.
Wenn ich die App im Release-Modus auf dem iPad bereitstelle (oder ein IPA erstelle), erhalte ich eine Ausnahme, wenn ich versuche, ein Objekt mit System.Text.Json zu serialisieren .
Dies geschieht nur bei der Bereitstellung im Release-Modus.
Code: Select all
NullabilityInfoContext_NotSupported
at System.Reflection.NullabilityInfoContext.EnsureIsSupported() at
System.Reflection.NullabilityInfoContext.Create(PropertyInfo ) at System.Text.Json.Serialization.Metadata.DefaultJsonTypeInfoResolver.DeterminePropertyNullability(JsonPropertyInfo, MemberInfo, NullabilityInfoContext) at ...
Code: Select all
AppContext.SetSwitch("System.Reflection.NullabilityInfoContext.IsSupported", true);
Code: Select all
true