I have a problem with my WPF Designer in VS Community 2022

Kim Burmester 21 Reputation points
2022-02-22T16:14:46.433+00:00

I have a problem with my WPF Designer in VS Community 2022.

The designer does not load but gives the following error message:

"Some assembly references are missing. Creating to restore the NuGet cache can fix this problem".

Since I am new to WPF, I don't know what the problem is.

Do I perhaps need to add something in the AssemblyInfo.cs file? But that wouldn't fix the basic issue of the designer not loading every time I start a new project.

There was a similar problem with Win Forms Designer, where you simply had to delete a certain file.

Thanks for help

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,761 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
804 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.