Setup
I followed Universal App with SQLite example to add SQLite
to my project; then to add the BackgroundTask
I followed Quickstart: Create and register a background task example.
Problem
The SQLite targets either
Windows Phone 8.1
orWindows 8.1
The
BackgroundTask
targets onlyWindows
(being aWindows Runtime Component
)
This is where it becomes tricky.
You cannot reference a project with the BakgroundTask
that isn't portable, thus I cannot add SQLite for Windows Runtime (Windows 8.1) or SQLite for Windows Phone 8.1 to the BackgroundTask
project.
Question
Is there anyway to use SQLite
in the BackgroundTask
of Windows (Phone) 8.1 project?