在 Windows Phone 商店上传应用程序时出错 [英] Getting error while uploading app on Windows Phone Store

查看:34
本文介绍了在 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 时.根据 this 我需要重建如果应用程序不起作用,我需要手动删除重复的 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.

推荐答案

最后我解决了这个问题.当有人使用 Microsoft Ad SDK 时,清单文件会两次引用 DLL.请参阅下面的代码.所以要解决这个问题,请在 WinRAR 或 WinZip 中打开您的 XAP 文件.提取 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天全站免登陆