0

I got a issue will trying to submit an application to the Windows Store. After that I upload the ".msixupload" file. 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

Is someone have a idea on how to fix this?

enter image description here

Roy Li - MSFT
  • 8,043
  • 1
  • 7
  • 13
Hugo
  • 2,077
  • 2
  • 28
  • 34
  • Have you checked the manifest file of your app? – Roy Li - MSFT Dec 15 '22 at 07:28
  • Deep down the .msixupload package zip file the found a .msix file in witch I found AppxManifest.xml, in witch I found a duplicate "MakePri.exe" with 2 different version. In the section. How is that have append? How to fix this? Any idea? – Hugo Dec 15 '22 at 19:48
  • It's hard to say. Could you please tell me what kind of application it is and how do you package your app? – Roy Li - MSFT Dec 16 '22 at 02:18
  • It a C# UWP Application made with VS 2022, packaged with a "Windows Application Packaging Projet". Do you need other info? – Hugo Dec 17 '22 at 14:52
  • If it is just only a UWP application, you could just package it without using WAPP, is there any other reason for using WAPP? – Roy Li - MSFT Dec 19 '22 at 01:25
  • Now I got another error: 0x80080215 - Non appx extensions are not allowed for payload packages targeting older platforms. I will open another topic for this – Hugo Dec 19 '22 at 19:00

2 Answers2

2

Removing the "Microsoft.Windows.SDK.BuildTools" package that comes with the Packaging Project solves the problem. This package is not mandatory.

The Windows Application Packaging Projet is required for example when including Win32 exe into an UWP project (runFullTrust capability) for publishing on the Store, otherwise the Store application can fail to start ( Store version of UWP Package with a full trust process forms app keeps crashing on launch )

In the detail, as mentionned by Hugo the AppxManifest.xml from the .msixupload file contains two "Makepri.exe" in the "build:Metadata" section: one "MakePri.exe" (capital "M") and one "makePri.exe" (lower case "m"). The "Microsoft.Windows.SDK.BuildTools" package is responsible for the "makePri.exe", when checking its "Microsoft.Windows.SDK.BuildTools.props" file.

Removing the package doesn't result in errors when generating the Store package or using the application.

Javert
  • 248
  • 2
  • 7
0

The was no need for an additional "Windows Application Packaging Projet"

Hugo
  • 2,077
  • 2
  • 28
  • 34