❔ Microsoft.XmlSerializer.Generator causes failure to load assembly System.Runtime
Hey all, as a way to get my program running under NativeAOT I've been looking into the Microsoft.XmlSerializer.Generator, however while it generates fine, on trying to serialize anything I get this exception:
System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=7.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.
All of the projects it is trying to serialize are all .net 7, using a .net 7 sdk version as well. I checked the System.Runtime version these projects reference and it is indeed version 7.0.0.0, so I am not sure what is happening here. Any ideas? Thanks.A
AquaCK•399d ago
I should mention this only happens on publish with trimming. I'm not publishing with AOT just yet as I just want to get this working first.
A
Accord•398d ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
51KMembers
View on DiscordWant results from more Discord servers?
More Posts✅ Make method implemented in interface accessible from implementing typei have an interface ```csharp
interface ICL
{
public IEnumerable<ICLPlatform> GetPlatforms()
{
❔ ASP.NET, MongoDB, C#does anyone have experience with c#, mongodb and ASP.NET? I have a project and I need to get data to✅ Is there a working code editor for blazor server?i found one for blazor wasm https://github.com/serdarciplak/BlazorMonaco but that one does not work ✅ Multiple inheritance questionI have a partial class webform that is inheriting a base page class. Inside it there are multiple re❔ How to automatically set version of project to know what version deployed on specific server?The problem is that there is bunch of clients with different versions of .net core and netfx projecthow to make a target that will disappear after shooting a couple of times this is my scripts i havebut it doesnt seem to want to destroy https://paste.mod.gg/mppnwkqnmukq/2