Preload SQLite native lib from extension dir (0.15.13).
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user