I have a small WPF application which used to compile just fine but is not anymore. I can\'t really say at which point it stopped building. It just worked fine one day, and t
I was facing the same issue. You get this error but still you can build your project successfully, The inconvenience is that you can not see the UI designing (or just want to clean the code & remove annoying wiggly lines). Read many posts are tried several things but following works like a charm.
Tried this in Visual Studio 2019:
Right click on your Solution -> Properties -> Configuration Properties, then change the project configurations from Debug to Release or vice versa.
After that, rebuild your solution. It can solve your problem.