Visual Studio 2022 Designer fails to open: WinRT missing

If the Visual Studio Designer fails to open winforms for a WinRT error, try this:

Add the Microsoft.Windows.CsWinRT package via NuGet.

Let Visual Studio Churn for a few minutes.
Try opening the forms that previously errored.

If they still don’t, open add this:

<ItemGroup>
<FrameworkReference Remove="Microsoft.Windows.SDK.NET.Ref" />
</ItemGroup>

Let Visual Studio Churn for a few minutes then try again.

Leave a Reply