TypeInitializationException thrown by runtime when attempting to use JsonSerializer (.NET 8.0).
Hi. I am running dotnet version 8.0.100-preview.4.23260.5, using ASP.NET version 8.0.0-preview.7.23375.9 with Microsoft.EntityFrameworkCore.Design 8.0.0-preview.7.23375.4 and Microsoft.EntityFrameworkCore.Sqlite 8.0.0-preview.7.23375.4 and on Arch Linux. I am encountering a issue where the runtime seems to be completely internally crashing when I attempt to use the static JsonSerializer class, throwing a TypeInitializationException/TypeLoadException. I am not sure whether this is some inexplicably cursed issue in my project or if my whole .NET installation is completely f*cked.. Help would be appreciated

0 Replies