dotnet / dotnet/efcore

Microsoft.Data.Sqlite and NativeAOT compatibility

Open
#36,068 1 comment 5 reactions 0 assignees View on GitHub
area-adonet-sqlite
Dominant language
C#
Stars
14.8k
Forks
3.4k
PR merge metrics
PR metrics pending

Description

This covers doing everything needed to make Microsoft.Data.Sqlite fully compatible with NativeAOT:

* When publishing a NativeAOT console app the references Microsoft.Data.Sqlite, running fails because the `e_sqlite3` native library cannot be found. This could be an issue with SQLitePCLRaw.
* The project should have `` enabled for analyzer warnings on problematic code ([docs](https://learn.microsoft.com/en-us/dotnet/core/deploying/native-aot/?tabs=windows%2Cnet8#aot-compatibility-analyzers)).
* Ensure that we have an AOT console program that runs a basic flow, which builds and runs in CI, warning-free.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.