Unity version 2021.3.28f1 lacks the UWP Publish Button in Visual Studio Build for package generation

Nabil Aittaleb 0 Reputation points
2023-08-18T08:13:36.8566667+00:00

We are making a HoloLens 2 application using Unity 2021.3.28f1 and MRTK 2.8.3.0.

The Visual Studio 2022 (version 17.4.5) project that is generated does not recognise the included Package.appxmanifest.
This results in the "Create App Packages..." button missing in the right-click menu and being greyed out under "Project>Publish>Create App Packages...".

This problem happens when using Unity 2021.3.28f1 and is working fine with previous version (Unity 2021.3.18f1).

PS: The certificate WSATestCertificate.pfx is not expired.

As you can see with this screenshot, the "Create App Package..." button is disabled

User's image

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,044 questions
HoloLens Development
HoloLens Development
HoloLens: A family of Microsoft self-contained, holographic devices that enable engagement with digital content and interaction with holograms in the surrounding environment.Development: The process of researching, productizing, and refining new or existing technologies.
397 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Zuocheng Wang - MSFT 3,091 Reputation points Microsoft Vendor
    2023-08-21T10:06:38.93+00:00

    Hello, Welcome to Microsoft Q&A,

    I can reproduce this issue on Unity 2021.3.29f1. I followed @Y W 's method and it worked for me.

    This seems to be a bug in newer versions of Unity, please refer to Bug - Unity version 2021.3.28f1 lacks the UWP Publish Button in Visual Studio Build for package generation - Unity Forum.

    2 people found this answer helpful.
    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.