Visual Studio: the payload contains two or more files with the same target path

I suddenly get a strange build error in my UWP (Xamarin Forms) project that uses Akavache SQLite:

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.8\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

I really don't know what I did to cause this; the only thing I know, I changed from the moment when it did not work, and the time that he did was to connect the project with the store’s application package ...

The UWP project refers to two other projects: the main xamarin forms project and a separate base library with other shared mobile components. both have a link to the Akavache library and use it, and I see that the dll is referenced in all three projects.

I tried changing Copy Local to False for this battery_v2.dll, but that didn't fix it. I also tried to clean up the project, and also manually delete the bin / obj folders, but that also did not help ...

What I did?

+4
source share

Source: https://habr.com/ru/post/1685265/


All Articles