I am trying to get started with a brand new .NET Maui application. Upon creating the project, it has a single project for the MauiApp, and another project named MauiApp.WinUI. When I try to run the the app on my Windows 10 device, I get the error: "The project doesn't know hot to run the profile MauiApp.WinUI". I am not sure what to do in order to fix this. Any suggestions?
In my case installing Single-project MSIX Packaging Tools solved the problem.
Just in case, I already had Project Reunion (Preview) installed.
As of 7/14/21, you should use the Single-project MSIX Packaging Tools for VS 2022, not the one for VS 2019.
I was under the impression after watching a few of the community hangouts that all you needed to do was run the maui-check tool.
It appears that there are other dependencies beyond the tools capabilites, or that it doesn't check, which is a little annoying. But are listeed in the installation docs.
Single-project MSIX Packaging Tools
Project Reunion (Preview)
After installing these everything worked fine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With