UWP can't build with EF core 3.1

c# entity-framework-core uwp

Question

I have a existing UWP Application. When I upgrade to EF Core 3.1 I get the following build error:

error APPX1101: Payload contains two or more files with the same destination path 'e_sqlite3.dll'. Source files: 
error APPX1101: C:\Users\ninop\.nuget\packages\sqlitepclraw.lib.e_sqlite3\2.0.2\runtimes\win10-x86\nativeassets\uap10.0\e_sqlite3.dll
error APPX1101: C:\Users\ninop\.nuget\packages\sqlitepclraw.lib.e_sqlite3.v140\1.1.2\runtimes\win10-x86\native\e_sqlite3.dll

I tried to delete the .nuget cache and restarting VS but without success. Also the issue occurs on multiple computers. Also reinstalling EF Core didn't help.

EDIT: My Application has Target Version 1903 and Min Version 16299

Also tried deleting bin and obj folder and chaning the build platform afterwards, but without success.

EDIT2: For reference here is the source code with the related branch: https://github.com/NPadrutt/MoneyFox.Windows/tree/update-nugets

1
0
1/10/2020 9:39:41 AM

Accepted Answer

The issue seems to be related to the AppCenter package:

https://github.com/dotnet/efcore/issues/19156

I could resolve the issue by removing the AppCenter Nuget from my UWP Project.

0
1/25/2020 5:32:44 PM


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow