ericsink / SQLitePCL.raw

A Portable Class Library (PCL) for low-level (raw) access to SQLite
Apache License 2.0
512 stars 106 forks source link

2.07 and AnyCPU #460

Closed gnimor closed 2 years ago

gnimor commented 2 years ago

I have an SDK style project with target framework 472. I have read all the information in #444 and #446 but it seems for me that when I have set the platform target in my executable to "AnyCPU" the "e_sqlite3.dll" library is not copied to the output folder but with x86 or x64 it is.

My architecture is something like this:

MyApplication (AnyCPU) -----> Lib A (referencing Microsoft.Data.Sqlite and SQLitePCLRaw.bundle_e_sqlite3)

ericsink commented 2 years ago

Can you upload a minimal repro project?

gnimor commented 2 years ago

Sorry for the long delay - I have attached a project where you can see the behavior.

The MyLib is using the Microsoft.Data.Sqlite and SQLitePCLRaw.bundle_e_sqlite3 package. The MyApp is just using the MyLib

MyApp (AnyCPU) -----> MyLib (referencing Microsoft.Data.Sqlite and SQLitePCLRaw.bundle_e_sqlite3)

after compiling the MyApp, the output folder does not contain the e_sqlite3.dll

SQLITE.zip

bricelam commented 2 years ago

Possibly related to #252

ericsink commented 2 years ago

I am pleased to announce that #252 may finally have its long-awaited and well-deserved win.

gnimor commented 2 years ago

@ericsink When do you think is this version available via Nuget?

ericsink commented 2 years ago

Version 2.1.0 includes this fix and is now available on nuget.