更新1

这是AppManifest.xaml的内容

<Deployment xmlns="http://schemas.microsoft.com/client/2007/deployment" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" EntryPointAssembly="TurnMeOff" EntryPointType="TurnMeOff.App" RuntimeVersion="4.7.50308.0">
  <Deployment.Parts>
    <AssemblyPart x:Name="TurnMeOff" Source="TurnMeOff.dll" />
    <AssemblyPart x:Name="Microsoft.Advertising.Mobile" Source="Microsoft.Advertising.Mobile.dll" />
    <AssemblyPart x:Name="Microsoft.Advertising.Mobile.UI" Source="Microsoft.Advertising.Mobile.UI.dll" />
    <AssemblyPart x:Name="microsoft.advertising.mobile.ui" Source="microsoft.advertising.mobile.ui.dll" />
    <AssemblyPart x:Name="Microsoft.Phone.Controls.Maps" Source="Microsoft.Phone.Controls.Maps.dll" />
    <AssemblyPart x:Name="Microsoft.Advertising.Mobile" Source="Microsoft.Advertising.Mobile.dll" />
  </Deployment.Parts>
</Deployment>

我收到“2001:AppManifest.xml中有重复文件。删除其中一个文件,然后重试。”在商店上上传XAP时。根据this的介绍,如果它无法正常工作,我需要重建该应用程序,我需要手动删除重复的AppManifest.xml,但是我的XAP没有重复的AppManifest.xml。为什么我无法上传应用程序?

XAP结构如下所示。

最佳答案

最后我解决了这个问题。当任何人使用Microsoft Ad SDK时,清单文件两次引用DLL。请参见下面的代码。因此,要解决该问题,请在WinRAR或WinZip中打开您的XAP文件。提取AppManifest.xaml并删除重复的DLL条目。之后,将更新的AppManifest.xaml添加到XAP中。

<Deployment xmlns="http://schemas.microsoft.com/client/2007/deployment" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" EntryPointAssembly="TurnMeOff" EntryPointType="TurnMeOff.App" RuntimeVersion="4.7.50308.0">
  <Deployment.Parts>
    <AssemblyPart x:Name="TurnMeOff" Source="TurnMeOff.dll" />
    <AssemblyPart x:Name="Microsoft.Advertising.Mobile" Source="Microsoft.Advertising.Mobile.dll" />
    <AssemblyPart x:Name="Microsoft.Advertising.Mobile.UI" Source="Microsoft.Advertising.Mobile.UI.dll" />
    <!-- BELOW IS DUPLICATE OF ABOVE -->
    <AssemblyPart x:Name="microsoft.advertising.mobile.ui" Source="microsoft.advertising.mobile.ui.dll" />
    <AssemblyPart x:Name="Microsoft.Phone.Controls.Maps" Source="Microsoft.Phone.Controls.Maps.dll" />
    <!-- BELOW IS DUPLICATE OF SECOND ONE -->
    <AssemblyPart x:Name="Microsoft.Advertising.Mobile" Source="Microsoft.Advertising.Mobile.dll" />
  </Deployment.Parts>
</Deployment>

关于xml - 在Windows Phone Store上上传应用程序时出错,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/19187323/

10-10 22:14