I want to create an MSIX installer for a new Single Project Uno Platform app with Visual Studio 2022 on Windows 11. I'm using Microsoft's guidance for using an Application Packaging Project.
Guidance: https://learn.microsoft.com/en-us/windows/msix/desktop/vs-package-overview
However, the Wap project doesn't generate an MSIX installer.
I used the Blank app Preset and named the project MinimalUnoSample
, with the following options:
Steps to reproduce:
MinimalUnoSampleWap
, per the Guidance, listed above. Here are the settings I chose:
a. Version defaults - Target Version is Windows 11, version 22H2 and Minimum Version is Windows 10, version 1809.MinimalUnoSample
project.Debug AnyCPU
, which causes MSB3779
errors. So, I changed the configuration on both projects to Debug x86. BTW, I've tried x64
with the same results too. Then I tried a Release
build for both x86
and x64
with the same results.I looked where the MSIX should be at the Output location (from #10), inside of every Debug and Release folder in the \bin, and it was not generated. I looked at C:\Projects\temp (from #11) too.
"The Specified EntryPointExe '' was not found in the project outputs." error still shows in the Error List.
The following answers don't work because I can't change <TargetFrameworks>
to <TargetFramework>
(singular) because it's a multi-platform Uno app.
The following answer didn't resolve the issue because I verified that I'm using .NET 8 and that the target framework is installed:
The answer (via comment) to the following question didn't resolve the Issue because I'm updated to the latest version of Visual Studio 2022, Version 17.9.7.
The solution was to use MSBuild
as detailed in the new Uno Project Documentation:
msbuild /r /p:TargetFramework=net8.0-windows10.0.19041 /p:Configuration=Release /p:Platform=x64 /p:GenerateAppxPackageOnBuild=true /p:AppxBundle=Never /p:UapAppxPackageBuildMode=Sideloading /p:AppxPackageDir="C:/temp/output/" /p:AppxPackageSigningEnabled=true