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.
Can you should a screenshot?
As you can see, the “Create App Package…” button is disabled
1 Like
I can confirm the same behaviour using Unity 2021.3.29f.
In my case the issue is related to the location of file “Package.appxmanifest”. After the build in Unity and opening the solution in Visual Studio 2022, the file is located not in Project matching app developed in Unity but it is in the node Unity Data. Moving that file under project (UWP) and with selected that project was the creating of app package possible. But every build in Unity creates again the file in Unity Data node. So everytime needed to remove that file and keep only the one in the app node in solution explorer. Hope this helps somehow.
If file “Package.appxmanifest” is in Unity Data node move it into the

Your App name (Universal Windows) node like below:

Then the option to create app package is working as expected:

Can either of you file a bug report on this?
Hello Everyone,
As @rubikCZ said, there is a workaround:
-1) include this file Package.appxmanifest In [YourUnityProject] by Right Click>Add>Existing Item…–>Package.appxmanifest
-2) exclude the file from Unity Data project by right Click on file and → Exclude From Project
But you have to do this each time Unity generates the solution.