“The project doesn't know how to run the profile sample.WinUI”

Viewed 2218

When I try to build a MUAI project, it gives the error “The project doesn't know how to run the profile sample.WinUI". The project gets built but it doesn't run. I am using Visual Studio 2022 Preview(17.0.0 Preview 1.0) and .NET version 6.0.100-preview.5.21302.13

1 Answers

Haven't found this documented yet, but it turns out you need to install the 2022 equivalent of Single-project MSIX Packaging Tools for VS 2019. You can find the 2022 version here:

Single-project MSIX Packaging Tools for VS 2022

Once installed you can build the WinUI project then right-click and select Deploy. Debugging and running should then work as expected.

Related