我有 UWP 应用程序并使用 Akavache。添加 MobileCenter NuGet 包后,我在构建应用程序时遇到了这个问题:
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
如何在不删除 Akavache 或 VSMC 的情况下修复它?
最佳答案
根据@Eric Sink 的评论,我尝试排除 Mobile Center 重复的 DLL,据我所知,Mobile Center 使用 Akavache sqlite 依赖项可以正常工作。不过,我没有在运行时测试 Akavache。
我正在使用 project.json 这对我有用:
"SQLitePCLRaw.bundle_green": {
"version": "1.1.2",
"exclude": "all"
}
内
dependencies
目的。
关于uwp - 在 UWP 项目中使用 Akavache + Mobile Center 时生成错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44328847/