Preload SQLite native lib from extension dir (0.15.13).

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Leonid Pershin
2026-08-23 20:31:12 +03:00
co-authored by Cursor
parent c170aff4e3
commit 5a7a72d972
3 changed files with 52 additions and 3 deletions
+9 -1
View File
@@ -22,7 +22,7 @@
AND !$([System.String]::Copy('%(ReferenceCopyLocalPaths.NuGetPackageId)').StartsWith('SQLitePCLRaw'))" />
</ItemGroup>
</Target>
<!-- Native libe_sqlite3 for Linux — ReferenceCopyLocalPaths alone is not enough. -->
<!-- Native libe_sqlite3 for Linux — also copy flat names the loader probes. -->
<Target Name="CopySqliteNativeRuntimes" AfterTargets="Build">
<ItemGroup>
<_SqliteNative Include="@(RuntimeCopyLocalItems)"
@@ -32,5 +32,13 @@
DestinationFiles="$(OutputPath)@(_SqliteNative->'%(RuntimeCopyLocalItems.DestinationSubPath)')"
SkipUnchangedFiles="true"
Condition="'@(_SqliteNative)' != ''" />
<Copy SourceFiles="@(_SqliteNative)"
DestinationFiles="$(OutputPath)%(Filename)%(Extension)"
SkipUnchangedFiles="true"
Condition="'@(_SqliteNative)' != '' and $([System.String]::Copy('%(RuntimeCopyLocalItems.DestinationSubPath)').Contains('linux-x64'))" />
<Copy SourceFiles="@(_SqliteNative)"
DestinationFiles="$(OutputPath)e_sqlite3%(Extension)"
SkipUnchangedFiles="true"
Condition="'@(_SqliteNative)' != '' and $([System.String]::Copy('%(RuntimeCopyLocalItems.DestinationSubPath)').Contains('linux-x64')) and $([System.String]::Copy('%(Filename)').Contains('libe_sqlite3'))" />
</Target>
</Project>