XAML [Control] is not supported in a Windows application project

When I open the XAML or user control page in Visual Studio in my project, the IDE tells me that [Control] is not supported for all controls. Nor will he show me the design view for XAML.

I turned off all Visual Studio plugins, and the only thing that worked consistently was to pull the entire project out of the control source and reopen the project from scratch. After closing Visual Studio, the problem will recur.

+4
source share
1 answer

It took me a long time to understand. Since I use SQLite for this project, I could no longer use the "Any CPU" configuration for this project (next to the debug / release drop-down list). I am setting up a new configuration, so ARM will be used in the phone version, and x86 will be used in the desktop version. This is when I started to see the problem.

To fix the problem, try switching between different configurations. Switching between "My user configuration β†’ x64 β†’ My user configuration" will usually clear it for me, but try switching a couple of times to different architectures if this does not work.

You need to do this only once when you open the project, and all your views will work correctly from then on (Intellisense and Design View specifically). I will update the question by including Visual Studio 2015 if I run into a problem there.

+5
source

All Articles