Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"The project doesn't know hot to run the profile MauiApp.WinUI"

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?

like image 335
Mampinator Avatar asked Jun 19 '21 19:06

Mampinator


3 Answers

In my case installing Single-project MSIX Packaging Tools solved the problem.

Just in case, I already had Project Reunion (Preview) installed.

like image 144
Iman Sobhaniyan Avatar answered Sep 19 '22 19:09

Iman Sobhaniyan


As of 7/14/21, you should use the Single-project MSIX Packaging Tools for VS 2022, not the one for VS 2019.

like image 23
Shidouuu Avatar answered Sep 20 '22 19:09

Shidouuu


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.

like image 44
user520100 Avatar answered Sep 17 '22 19:09

user520100