2013-10-04 82 views
0

更新1得到错误而在Windows Phone应用商店上传应用

这里的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结构如下所示。

enter image description here

+1

AppManifest.xaml的内容无效,而不是.xap的内容。 – lisp

+0

如何纠正它? – Xyroid

回答

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> 
相关问题