When starting up my Blazor Server solution everything seems fine. It builds and all custom elements in the razor files look fine with highlighted green color (using black theme).
But when making a tiny change somewhere in the project, no matter what it is, all custom razor elements to turn blue with error indicators, and it shows the message "found markup element with unexpected name".
I think this kind of behavior may be caused by a conflict somewhere. But I don't know how to find it. I can't find any errors in the Output-window.
Is there a way to track down this problem?
Edit: The way I am dealing with it now, which is cumbersome and not good, is that I clean the solution, close it, delete the .vs folder and open the solution again. Then everything is fine... until I make changes.