WinUI3 project will not launch when packaged with Windows Application Packaging Project
I am losing my mind with WinUI3 and packaging the app without distributing to the Microsoft Store, why is it so difficult to distribute a WinUI3 app?
Project structure:
- App1 (Blanck App, Packaged (WinUI 3 in DesktOP)
- WapProjTemplate1 (Windows Application Packaging Project)
Steps to reproduce issue:
- Add App1 as an Application depedency in WajProTemplate1
- Build solution
- WapProjTemplate1 > Publish > Create App Packages
- Go to MSIX bundle, run PowerShell script to install dependencies and app
- Open installed app
- App crashes
3 Replies
This is the guide I followed: https://learn.microsoft.com/en-us/windows/msix/desktop/desktop-to-uwp-packaging-dot-net
Package a desktop app from source code using Visual Studio - MSIX
This guide explains how to configure your Visual Studio Solution to edit, debug, and package a desktop application.
are you using r2r or singlefile option?