Visual Studio 2022: XDG0047 error – The following type was expected: „Object“ in Xaml editor

Veröffentlicht von

Strange error in WPF projects after upgrading to Visual Studio 2022.

Some weeks ago, I updated from Visual Studio 2019 to 2022. Since then, I am getting a strange error in the Xaml editor.

Error	XDG0047	The specified value cannot be assigned. The following type was expected: "Object".	

This results in the preview of the view not working and just showing „Invalid Markup“.

So far I was not able to find out what seems to be the problem. I suspect a bug in the Xaml editor, as the project compiles and runs perfectly.

5 Kommentare

Kommentar hinterlassen

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.