更新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时。根据{{3}}我需要重建应用程序,如果它不起作用我需要手动删除重复的AppManifest.xml,但我的XAP没有重复的AppManifest.xml。为什么我无法上传应用程序?
XAP结构如下所示。
答案 0 :(得分:4)
最后我解决了这个问题。当任何人使用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>