mardi 4 août 2015

How to use SQLite in both Windows Phone 8.1 Silverlight Application and WinRT Runtime Component

I have a situation where I have a Windows Phone Silverlight 8.1 application, and I would like to use a Windows Runtime Component as a background task. In both of these projects, I want to use SQLite for accessing the applications database.

I have found a similar question here:

How to use SQLite in Windows (Phone) 8.1's BackgroundTask

That almost covers the situation, but not quite. Any ideas on how to achieve what I am asking for?

I can get very "close", the latest error message that I am getting during the compilation stage is as follows:

Payload contains two or more files with the same destination path 'sqlite3.pdb'. Source files: C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\ExtensionSDKs\SQLite.WP80\3.8.11.1\Redist\Debug\ARM\sqlite3.pdb C:\Program Files (x86)\Microsoft SDKs\WindowsPhoneApp\v8.1\ExtensionSDKs\SQLite.WP81\3.8.11.1\Redist\Debug\ARM\sqlite3.pdb Dai.Asco.Tms.WindowsPhone

I am seen the solution to other errors of this type is to simply set the Copy Local to false on one of the references, but I don't see how this would be possible in this case, as both are actually required.

Thanks in advance!

Aucun commentaire:

Enregistrer un commentaire