When you are writing your wpf code and VS tell that “The name ABCDE does not exist in the namespace clr-namespace:ABC”. But you can totally build your project successfully, there is only a small inconvenience because you can not see the UI designing (or just want to clean the code).
Try to do these:
-
In VS, right click on your Solution -> Properties -> Configuration Properties
-
A new dialog is opened, try to change the project configurations from Debug to Release or vice versa.
After that, re-build your solution. It can solve your problem.