在AppManifest.xml中检测到重复文件 - Microsoft.Advertising.Mobile [英] Duplicate file detected in AppManifest.xml - Microsoft.Advertising.Mobile
问题描述
大家好,
我正在尝试将我的应用程序提交到Microsoft Store,但我收到错误"AppManifest.xml中检测到重复文件"。如果我删除了对Microsoft.Advertising.Mobile的引用,则错误消失,但我的广告在应用程序中也会消失。
I am trying to submit my app to the Microsoft Store, but am getting the error "Duplicate file detected in AppManifest.xml". If I remove the reference to Microsoft.Advertising.Mobile, the error disappears, but so does my ads in the application.
据我所知,没有重复的文件在xap文件中的任何位置,所以我不知道如何解决这个问题。以下是AppManifest.xaml的内容
As far as I can tell there are no duplicate files anywhere in the xap file, so I am not sure how I can resolve this. Below is the content of AppManifest.xaml
< Deployment xmlns =" http://schemas.microsoft.com/client/2007 /部署"的xmlns:X =" HTTP://schemas.microsoft.com/winfx/2006/xaml" EntryPointAssembly = QUOT; Nyheder" EntryPointType = QUOT; Nyheder.App" RuntimeVersion =" 4.7.50308.0">
< Deployment.Parts>
&NBSP; < AssemblyPart x:Name =" Nyheder"源= QUOT; Nyheder.dll" />
&NBSP; < AssemblyPart x:Name =" Microsoft.Advertising.Mobile"源= QUOT; Microsoft.Advertising.Mobile.dll" />
&NBSP; < AssemblyPart x:Name =" Microsoft.Advertising.Mobile.UI"源= QUOT; Microsoft.Advertising.Mobile.UI.dll" />
&NBSP; < AssemblyPart x:Name =" AdDuplex.WindowsPhone"源= QUOT; AdDuplex.WindowsPhone.dll" />
&NBSP; < AssemblyPart x:Name =" GalaSoft.MvvmLight.Extras.WP8"源= QUOT; GalaSoft.MvvmLight.Extras.WP8.dll" />
&NBSP; < AssemblyPart x:Name =" GalaSoft.MvvmLight.WP8"源= QUOT; GalaSoft.MvvmLight.WP8.dll" />
&NBSP; < AssemblyPart x:Name =" Microsoft.Advertising.Mobile"源= QUOT; Microsoft.Advertising.Mobile.dll" />
&NBSP; < AssemblyPart x:Name =" Microsoft.Phone.Controls"源= QUOT; Microsoft.Phone.Controls.dll" />
&NBSP; < AssemblyPart x:Name =" Microsoft.Phone.Controls.Toolkit"源= QUOT; Microsoft.Phone.Controls.Toolkit.dll" />
&NBSP; < AssemblyPart x:Name =" Microsoft.Practices.ServiceLocation"源= QUOT; Microsoft.Practices.ServiceLocation.dll" />
&NBSP; < AssemblyPart x:Name =" System.Windows.Interactivity"源= QUOT; System.Windows.Interactivity.dll" />
< /Deployment.Parts>
< /部署>
<Deployment xmlns="http://schemas.microsoft.com/client/2007/deployment" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" EntryPointAssembly="Nyheder" EntryPointType="Nyheder.App" RuntimeVersion="4.7.50308.0">
<Deployment.Parts>
<AssemblyPart x:Name="Nyheder" Source="Nyheder.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="AdDuplex.WindowsPhone" Source="AdDuplex.WindowsPhone.dll" />
<AssemblyPart x:Name="GalaSoft.MvvmLight.Extras.WP8" Source="GalaSoft.MvvmLight.Extras.WP8.dll" />
<AssemblyPart x:Name="GalaSoft.MvvmLight.WP8" Source="GalaSoft.MvvmLight.WP8.dll" />
<AssemblyPart x:Name="Microsoft.Advertising.Mobile" Source="Microsoft.Advertising.Mobile.dll" />
<AssemblyPart x:Name="Microsoft.Phone.Controls" Source="Microsoft.Phone.Controls.dll" />
<AssemblyPart x:Name="Microsoft.Phone.Controls.Toolkit" Source="Microsoft.Phone.Controls.Toolkit.dll" />
<AssemblyPart x:Name="Microsoft.Practices.ServiceLocation" Source="Microsoft.Practices.ServiceLocation.dll" />
<AssemblyPart x:Name="System.Windows.Interactivity" Source="System.Windows.Interactivity.dll" />
</Deployment.Parts>
</Deployment>
非常感谢任何帮助。
C#Professional
C# Professional
推荐答案
检查您的参考资料,看看您是否有以下参考:
Check your references and see if you have references to:
适用于Windows Phone的Microsoft Advertising SDK
Microsoft.Advertising.Mobile
Microsoft Advertising SDK for Windows Phone
Microsoft.Advertising.Mobile
SDK引用包含另一个程序集,因此您无需显式引用它。
The SDK reference contains the other assembly so you don't need to reference it explicitly.
这篇关于在AppManifest.xml中检测到重复文件 - Microsoft.Advertising.Mobile的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!