Windows Store Submission issue - Duplicate build metadata files were found in the manifest of package

hdufort 6 Reputation points
2022-12-17T20:30:48.42+00:00

I got a issue will trying to submit an application to the Windows Store. My app is a UWP base application build with VS 2022 v17.4.3 (Full updated at the moment)

After that I upload the ".msixupload" file onto Partner Center. The package analyzer tell me:

* Package acceptance validation error: Duplicate build metadata files were found in the manifest of package FriskPackaging_0.1.8.0_x64.msix: makepri.exe *  

I then dive into the .msixupload package zip file the found another .msix file in witch I found AppxManifest.xml, in witch I found a duplicate "MakePri.exe" with 2 different version. In the <build:Metadata> section.

  <build:Metadata>  
    <build:Item Name="TargetFrameworkMoniker" Value=".NETFramework,Version=v4.5.1"/>  
    <build:Item Name="VisualStudio" Version="17.0"/>  
    <build:Item Name="VisualStudioEdition" Value="Microsoft Visual Studio Professional 2022"/>  
    <build:Item Name="OperatingSystem" Version="10.0.22621.1 (WinBuild.160101.0800)"/>  
    <build:Item Name="Microsoft.Build.AppxPackage.dll" Version="17.4.33122.133"/>  
    <build:Item Name="ProjectGUID" Value="f54c3672-aa03-4619-813a-feebff13021c"/>  
    <build:Item Name="ilc.exe" Version="2.2.31116.00 built by: PROJECTNREL"/>  
    <build:Item Name="Microsoft.Windows.UI.Xaml.Build.Tasks.dll" Version="10.0.19041.685"/>  
    <build:Item Name="OptimizingToolset" Value="ilc.exe"/>  
    <build:Item Name="UseDotNetNativeSharedAssemblyFrameworkPackage" Value="True"/>  
    <build:Item Name="DisableStackTraceMetadata" Value="false"/>  
    <build:Item Name="DisableExceptionMessages" Value="false"/>  
    <build:Item Name="ShortcutGenericAnalysis" Value="false"/>  
    <build:Item Name="GeneratePGD" Value="false"/>  
    <build:Item Name="ConsumePGD" Value="false"/>  
    <build:Item Name="SingleThreadNUTC" Value="false"/>  
    <build:Item Name="Use64BitCompiler" Value="false"/>  
    <build:Item Name="OptimizeForSize" Value="false"/>  
    <build:Item Name="AlignMethodsAtMinimalBoundaries" Value="false"/>  
    <build:Item Name="LargeAddressAware" Value="false"/>  
    <build:Item Name="NoLinkerSymbols" Value="false"/>  
    <build:Item Name="OutOfProcPDB" Value="false"/>  
    ****<build:Item Name="MakePri.exe" Version="10.0.19041.685 (WinBuild.160101.0800)"/>  
    <build:Item Name="Microsoft.Build.DesktopBridge.Tasks.dll" Version="17.4.33118.351"/>  
    ****<build:Item Name="makepri.exe" Version="10.0.22621.1 (WinBuild.160101.0800)"/>  
  </build:Metadata>  

How is that have append?
How to fix this?
Any idea?

Microsoft Partner Center
Microsoft Partner Center
A Microsoft website for partners that provides access to product support, a partner community, and other partner services.
877 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Roy Li - MSFT 32,111 Reputation points Microsoft Vendor
    2022-12-21T03:05:46.18+00:00

    Hello,

    Welcome to Microsoft Q&A!

    Please just package UWP project directly without using the Windows Application Package Project. This should help to solve the duplicate build metadata files issue.

    Thank you.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.