尝试在发布模式下运行UWP会给出“有效负载包含两个或多个文件".错误 [英] Trying to run UWP in release mode gives an "Payload contains two or more files.." error

查看:112
本文介绍了尝试在发布模式下运行UWP会给出“有效负载包含两个或多个文件".错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Xamarin论坛上提出了这个问题,但没有得到回应.

I asked this on the Xamarin forums but got no response.

在调试模式下运行我的应用程序可以正常工作,但是当我尝试在发布模式下运行时,出现以下错误:

Running my app in debug mode works fine, but when I try to run in release mode, I get these errors:

错误有效负载包含两个或多个文件,这些文件具有相同的目标路径"e_sqlite3.dll".源文件: C:\ Users \ Bob.nuget \ packages \ sqlitepclraw.lib.e_sqlite3.v140 \ 1.1.8 \ runtimes \ win10-arm \ native \ e_sqlite3.dll C:\ Users \ Bob.nuget \ packages \ sqlitepclraw.lib.e_sqlite3.v140 \ 1.1.8 \ runtimes \ win10-x86 \ native \ e_sqlite3.dll

Error Payload contains two or more files with the same destination path 'e_sqlite3.dll'. Source files: C:\Users\Bob.nuget\packages\sqlitepclraw.lib.e_sqlite3.v140\1.1.8\runtimes\win10-arm\native\e_sqlite3.dll C:\Users\Bob.nuget\packages\sqlitepclraw.lib.e_sqlite3.v140\1.1.8\runtimes\win10-x86\native\e_sqlite3.dll

我还看到了其他帖子,其中一些用户已为UWP更新了nuget,而其他用户实际上已删除了dll之一,但是这些都不对我有用.当我尝试删除其中一个时,我得到一个错误,提示它丢失了,所以不确定该怎么做.

I have seen other posts where some users have updated the nuget for UWP and others that have actually deleted one of the dll's, but none of these work for me; when I try to delete one of them, I then get an error that it is missing, so not sure what to do.

我已经删除了nuget文件夹,并重新获取了所有内容,清理了解决方案,重新启动,但是似乎没有任何作用.

I have deleted my nuget folder and re-got everything fresh, cleaned my solution, rebooted, but nothing seems to work.

推荐答案

对我来说,问题在于该项目在项目属性中设置为以x64为目标,但是在调试时,我使用x86进行了调试.切换到使用x64进行调试的那一刻,它对我有用.

The issue for me was that the project was set to target x64 in the project properties, but when I debug, I debugged using x86. The moment I switched to debug using x64, it worked for me.

这篇关于尝试在发布模式下运行UWP会给出“有效负载包含两个或多个文件".错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆