MAUI Blazor hybrid - Windows MSIX packaging - Unable to set start menu folder

Valentine, Jack 0 Reputation points
2024-11-21T10:43:10.63+00:00

I am new to MSIX packaging so if this is a naïve question I apologise.

I have tried to set the start menu folder of the application shortcut for my latest MAUI-Blazor hybrid app as part of the MSIX package. I have followed the guidance in Group applications under a folder in the Start menu - MSIX | Microsoft LearnBut this results in the error:

DEP0700: Registration of the app failed. [0x80080204] error 0xC00CE014: App manifest validation error: The app manifest must be valid as per schema: Line 32, Column 8, Reason: Element '{http://schemas.microsoft.com/appx/manifest/uap/windows10}VisualElements' is unexpected according to content model of parent element '{http://schemas.microsoft.com/appx/manifest/foundation/windows10}Application'.

My take of this is the version of "Applcation" element in the latest Maui-Blazor project does not expect uap3:VisualElements. But I am not sure how to update this even if this is the issue.There are no other factors in this error, I am not attempting to develop, run or deploy to an external or network drive as is often the issue with this error. On reverting back to uap:VisualElements and deleting the VisualGroup property, the error disappears and the code works as expected.My requirements are to create an MSI or MSIX for windows deployment and the start menu shortcut must be in the same folder as previous applications. Could you please advise on whether this is possible or if I should look at a different packaging method?

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,605 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,662 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 44,791 Reputation points Microsoft Vendor
    2024-11-22T06:26:08.7166667+00:00

    Hello,

    Thanks for your feedback.

    I tested it on Maui and WinUI3 applications according to the document you provided and found that the problem only occurs in Maui applications.

    Since Maui on Windows is based on WinUI3, this is an unexpected error. It is recommended that you report it to the official repository to make our development team aware of it.

    Best Regards,

    Alec Liu.


    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.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.