.NET 10 has the compiler flag VerifyReferenceAotCompatibility
It is handy to check that all dependencies are AOT.
It is applicable to libraries and projects.
However it requires that some metadata is added to the referenced libraries during the build process.
.NET 8 only adds the IsTrimable metadata, even if the flag IsAotCompatible is set
.NET 10 adds IsTrimable and IsAot
No changes in the code are needed, only havig a new target for .NET 10
BTW, on my system, Avalonia 12.0.4 is pulling MicroCom 0.11.4 that is only .NET 5
.NET 10 has the compiler flag VerifyReferenceAotCompatibility
It is handy to check that all dependencies are AOT.
It is applicable to libraries and projects.
However it requires that some metadata is added to the referenced libraries during the build process.
.NET 8 only adds the IsTrimable metadata, even if the flag IsAotCompatible is set
.NET 10 adds IsTrimable and IsAot
No changes in the code are needed, only havig a new target for .NET 10
BTW, on my system, Avalonia 12.0.4 is pulling MicroCom 0.11.4 that is only .NET 5