I have created a brand-new WinUI 3 / Windows App SDK project in VS2022 Pro using a Blank Project template. When I open MainWindow.xaml in design mode after successfully building the project I get the following error message:
There doesn't seem to be anything missing under Packages, nor are there any errors anywhere else. As far as I can tell, all the necessary SDKs have been installed:
I am running VS2022 as Administrator in Windows 11 Enterprise v10.0.22621.
Any idea what I am missing?
UPDATE 1
Updated the NuGet packages, rebuilt the project and am now seeing three errors:
UPDATE 2
Accepted auto-suggested fixes to add xaml:
and controls:
namespaces in front of XAML tag names and now the errors are gone:
However, so is the ability to open the page in VS designer even though it's enabled in Tools > XAML Designer.
Moreover, when I open the project in VS Blend it doesn't show the designer either.
What is missing from my project?