Skip to content

Native AOT support #313

@pablopioli

Description

@pablopioli

.NET 8 is including a Native AOT mode
https://learn.microsoft.com/en-us/dotnet/core/deploying/native-aot

Certes cannot operate in this mode because of the NewtonsoftJson dependency. You need to use System.Text.Json if you want to make it work.

So I added .NET 8 as a compilation target and make all the modifications needed to use Text.Json on this version. Previous versions of .NET wasn't modified

This big update can be seen in
pablopioli@4c3bb73

If there is interest in this changes I could make a pull request, but I ask here first because there are a lot of ugly #ifs everywhere.

Additionaly, you will see that I copied the code for BouncyCastle. This was not strictly necessary but this library needed an additional change to make it work on NativeAOT, so this way was easier.

All tests pass on all platforms and it compiles cleanly to native code.
imagen

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions