uwp - 在 UWP 项目中使用 Akavache + Mobile Center 时生成错误

标签 uwp akavache mobile-center visual-studio-app-center

我有 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/

相关文章:

c# - RichTextBlock 不断在 UWP 中的运行之间插入空格

akavache - 如何在 Akavache 中指定 DownloadURL() 的 HTTP 超时?

ios - CocoaPods - 无法找到 `MobileCenter` 的规范

c++ - 单元测试从不执行

uwp - Windows 10 S 中的自签名 UWP 应用

xamarin.android - Akavache GetAndFetchLatest 从不调用 fetchfunc

c# - 移动中心 UITest 退出代码 20

xamarin.android - Mobile Center 是 Xamarin Build 失败并出现 pthread_mutex_lock 错误

windows - Firebase Unity 是否支持 Windows UWP 或 Windows 10 应用程序?

c# - Akavache 无效