Kraenys
Kraenys

Reputation: 297

There are duplicate files in appmanifest.xml

I am in the final steps to put on the market an application and I have the error 2001: There are duplicate files in appmanifest.xml

This is what my appmanifest.xaml looks like:

<Deployment xmlns="http://schemas.microsoft.com/client/2007/deployment" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" EntryPointAssembly="Smite" EntryPointType="Smite.App" RuntimeVersion="4.7.50308.0">
    <Deployment.Parts>
    <AssemblyPart x:Name="Smite" Source="Smite.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" Source="Microsoft.Advertising.Mobile.dll" />
    <AssemblyPart x:Name="Microsoft.Advertising.Mobile.UI" Source="Microsoft.Advertising.Mobile.UI.dll" />
    <AssemblyPart x:Name="Microsoft.Phone.Controls.Toolkit" Source="Microsoft.Phone.Controls.Toolkit.dll" />
    <AssemblyPart x:Name="Microsoft.Threading.Tasks" Source="Microsoft.Threading.Tasks.dll" />
    <AssemblyPart x:Name="Microsoft.Threading.Tasks.Extensions" Source="Microsoft.Threading.Tasks.Extensions.dll" />
    <AssemblyPart x:Name="Microsoft.Threading.Tasks.Extensions.Phone" Source="Microsoft.Threading.Tasks.Extensions.Phone.dll" />
    <AssemblyPart x:Name="MyToolkit" Source="MyToolkit.dll" />
    <AssemblyPart x:Name="MyToolkit.Extended" Source="MyToolkit.Extended.dll" />
    <AssemblyPart x:Name="Microsoft.Phone.Controls.Maps" Source="Microsoft.Phone.Controls.Maps.dll" />
    </Deployment.Parts>
</Deployment>

and this is what my appmanifest.xml looks like:

<Deployment xmlns="http://schemas.microsoft.com/client/2007/deployment"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <Deployment.Parts>
    </Deployment.Parts>
</Deployment>

I have tried to build, rebuild as Debug and Release, I have tried to delete the appmanifest.xaml, always the same error (appears twice).

If anybody know why I've this error.

Thanks in advance.

Upvotes: 1

Views: 246

Answers (2)

Farhan Ghumra
Farhan Ghumra

Reputation: 15296

I faced the same problem, check out my answer Getting error while uploading app on Windows Phone Store

Microsoft should correct the bug in either SDK.

Upvotes: 2

Kevin Gosse
Kevin Gosse

Reputation: 39047

Two assemblies are listed twice in your file:

<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" Source="Microsoft.Advertising.Mobile.dll" />
<AssemblyPart x:Name="Microsoft.Advertising.Mobile.UI" Source="Microsoft.Advertising.Mobile.UI.dll" />

Removing the duplicates may solve the issue:

<AssemblyPart x:Name="Microsoft.Advertising.Mobile" Source="Microsoft.Advertising.Mobile.dll" />
<AssemblyPart x:Name="Microsoft.Advertising.Mobile.UI" Source="Microsoft.Advertising.Mobile.UI.dll" />

Upvotes: 0

Related Questions