1
votes

I'm developing an app in UWP, C#/XAML.

I have a bunch of UserControl's, recently moved the .xaml and .xaml.cs files to a dedicated folder called VisualControls, and added the .VisualControls to the namespaces of all classes

Seems like a bug in VS2017, the IDE fails to find the control classes in the namespace.

VS does not find the class of user control, if I remove the xmlns reference, the IDE suggests the very same xmlns reference, and the error persist

VS does not find the class of user control, if I remove the xmlns:VisualControls reference in the file Capacitor.xaml (or other users of the GroupBox control), the IDE suggests the very same xmlns reference, and the error persist

below the CS of GroupBox User Control CS file of UserControl

below the XAML of GroupBox User Control XAML file of UserControl

I'm stuck here.. :( , what can I do?

1
close all visual studio and try opening againPeru
tried that alreadyLeandro Alsina

1 Answers

1
votes

it is a common bug but very simple to solve, right click your solution and clean solution twice, after that just rebuild your solution and problem will go away.