得到错误而在Windows Phone应用商店上传应用程序 [英] Getting error while uploading app on Windows Phone Store

查看:154
本文介绍了得到错误而在Windows Phone应用商店上传应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更新1

下面是AppManifest.xaml含量

Here's content of 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。据我需要重建该应用程序,如果它不工作,我需要手动删除重复的AppManifest.xml,但我的XAP是不是有重复的AppManifest.xml。为什么我不能上传应用程序?

I am getting "2001: There are duplicate files in AppManifest.xml. Remove one of the files and then try again." while uploading XAP on the store. According to this I need to rebuild the app if it doesn't work I need to manually remove the duplicate AppManifest.xml, but my XAP is not having duplicate AppManifest.xml. Why I am not able to upload the app?

在XAP结构就像如下。

The XAP structure is like given below.

推荐答案

我终于解决了这个问题。当有人使用微软的广告SDK,清单文件引用的DLL的两倍。请参阅下面的code。因此,要解决这个问题打开您的XAP文件在WinRAR或WinZip的。提取AppManifest.xaml并删除重复的DLL项。之后,加更新AppManifest.xaml到XAP。

Finally I solved the problem. When anybody uses Microsoft Ad SDK, the manifest file references the DLL twice. See the code below. So to solve the problem open your XAP file in WinRAR or WinZip. Extract AppManifest.xaml and remove the duplicate DLL entries. After that add updated AppManifest.xaml into 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>

这篇关于得到错误而在Windows Phone应用商店上传应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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