错误:DEP0001,HRESULT:0x80073CF9 将 UWP 应用部署到手机时

问题描述:

尽管 SO 上的现有线程相似,但我的问题在某种程度上有所不同,

Despite the alike existing threads here on SO, my problem is somehow different,

我制作了一个应用程序,我部署了它,运行良好.我复制了相同的应用程序解决方案,对其进行了一些更改以创建另一个与第一个应用程序具有几乎相同逻辑的应用程序(无法从头开始重新编码所有内容),部署它,然后我收到:

I have an application that I made, I deploy it, works fine. I copy the same application solution, make some changes on it to create an other application that have almost the same logic as the first one (can't re-code everything from scratch), deploy it, and I receive this :

严重性代码描述项目文件行抑制状态错误 错误:DEP0001:意外错误:安装失败.请请联系您的软件供应商.(来自 HRESULT 的例外:0x80073CF9) 我的应用程序

Severity Code Description Project File Line Suppression State Error Error : DEP0001 : Unexpected Error: Install failed. Please contact your software vendor. (Exception from HRESULT: 0x80073CF9) MyApplication

我相信这是因为系统将其识别为已部署的应用程序,我尝试删除第一个解决方案留下的任何打印件,删除 bin 和 obj 文件夹的内容,但没有没用.

I believe this is cause by the fact that the system is identifying it as an application that was already deployed, I tried to delete any prints left by the first solution, deleted the content of the bin and the obj folders, but didn't help.

请问这个问题的解决方案是什么

Please what's the solution for this problem

在 Windows 10 中,您不能有两个应用具有相同的 Name 和/或 PhoneProductId.如果您需要复制应用程序,您需要编辑其中之一的 packageappx.manifest 文件.您需要编辑代码 - 右键单击​​清单文件,选择 查看代码 并编辑提到的数据:

In Windows 10 you cannot have two apps with the same Name and/or PhoneProductId. In case you need to duplicate the app you will need to edit the packageappx.manifest file of one of them. You need to edit the code - right click on the manifest file, choose View code and edit mentioned data:

<Identity Name="LittleChangeinName" Publisher="CN=something" Version="1.0.0.0" />
<mp:PhoneIdentity PhoneProductId="082abc73-hereAlsoLittleChange-ea7ea4735fbd" PhonePublisherId="any GUID here" />

请记住,每个应用程序都有自己的 LocalData 文件夹(还有LocalSettins 和其他数据).

Remember that each of this apps has its own LocalData folder (LocalSettins and other data also).