Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Build error when using Akavache + Mobile Center in a UWP project

I have UWP app and use Akavache. After adding MobileCenter NuGet packages I have this problem whith building app:

Payload contains two or more files with the same destination path 'SQLitePCLRaw.batteries_v2.dll'. 
Source files:C:\Users\user\.nuget\packages\SQLitePCLRaw.bundle_e_sqlite3\1.1.0\lib\uap10.0\SQLitePCLRaw.batteries_v2.dll
C:\Users\user\.nuget\packages\SQLitePCLRaw.bundle_green\1.1.2\lib\uap10.0\SQLitePCLRaw.batteries_v2.dll

How can I fix it without removing Akavache or VSMC?

like image 430
Make Makeluv Avatar asked Jun 02 '17 12:06

Make Makeluv


1 Answers

Based on @Eric Sink comment, I tried to the exclude the Mobile Center duplicate DLL and as far as I can tell, Mobile Center works correctly using the Akavache sqlite dependency. I didn't test Akavache at runtime though.

I am using project.json and this worked for me:

"SQLitePCLRaw.bundle_green": {
  "version": "1.1.2",
  "exclude": "all"
}

inside dependencies object.

like image 110
Guillaume Perrot Avatar answered Nov 14 '22 00:11

Guillaume Perrot