WindowsAppSDK icon indicating copy to clipboard operation
WindowsAppSDK copied to clipboard

Unable to package app for Microsoft Store, because: "error: The app manifest must be valid as per schema. Reason: Required attribute 'PhonePublisherId' is missing."

Open Qws opened this issue 3 years ago • 5 comments

Describe the bug

I created an app with WinAppSDK/WinUI3 template (without WinForm and Wpf)

I tried to publish the app by left clicking the Project file and select "Associate with with Store" or "Create app package..." but it gets halted very quickly. Because:

Error 0x80080204 - The specified package format is not valid: The package manifest is not valid.

&

Error info: error C00CE020: App manifest validation error: The app manifest must be valid as per schema: Line 35, Column 4, Reason: Required attribute 'PhonePublisherId' is missing.

After I did that, I could not debug my app anymore either.

Because of:

image

&

DEP0700: Registration of the app failed. [0x80080204] error 0xC00CE020: App manifest validation error: The app manifest must be valid as per schema: Line 35, Column 4, Reason: Required attribute 'PhonePublisherId' is missing.

so the only way the debug the app again is to revert the changes made by the "Associate with the Store / Create app package".

And I still can't publish my app to Microsoft Store. I've uploaded my UWP apps with no problems to Microsoft Store, I can't do this with WinAppSDK/WinUI3.

Steps to reproduce the bug

  1. Create Windows App SDK + WinUI3 Project
  2. In Project leftclick menu, select "Associate the app with the Store" or ... "Create app package".

image

  1. Follow the wizard steps to make package for Microsoft Store.

Until it gets aborted for this: image

Expected behavior

I've released few UWP apps in the Store, and I keep maintaining them regularly, I've no problems with it... but with Windows App SDK it doens't work at all.

Screenshots

No response

NuGet package version

1.1.1

Packaging type

No response

Windows version

Windows 10 version 21H2 (19044, November 2021 Update)

IDE

Visual Studio 2022-preview

Additional context

I don't remember which WinUI3 template I used... I just picked one and started developing.

Qws avatar Jul 05 '22 10:07 Qws

Oke I fixed my issue by adding: PhonePublisherId="00000000-0000-0000-0000-000000000000" in the PackageManifest's <mp:PhoneIdentity />

I guess this is a bug and needs to be automated?

Qws avatar Jul 05 '22 19:07 Qws

Related: https://github.com/MicrosoftDocs/winrt-related/issues/19

riverar avatar Jul 05 '22 19:07 riverar

@sachintaMSFT tag you're it

DrusTheAxe avatar Jul 07 '22 19:07 DrusTheAxe

@sachintaMSFT Santosh Chintalapati FTE tag you're it

@sachintaMSFT Was this fixed in the servicing update?

DrusTheAxe avatar Aug 01 '22 18:08 DrusTheAxe

This seems to be an issue with WinUI3 template not adding phone publisher ID automatically to the manifest of the app being created. This is not an issue with the WinAppSDK packages itself. @MikeHillberg , who should look at this WinUI 3 template issue ?

sachintaMSFT avatar Aug 10 '22 01:08 sachintaMSFT

Encountered this problem, can't believe this is still not being fixed ☹️ The experience of developing WinUI 3 App cannot catch up with UWP☹️ Lots of Win32 Interop and a broken template


Update: I've created a new project using the WAP template then moved my codes into this one and it works fine. Seems the template without WAP doesn't work properly.

LancerComet avatar Dec 25 '22 12:12 LancerComet