Blazor components and Intellisense

Posted on : December 10 2023 by Andrei Hetel
BlazorVisual Studio

The situation is known because I have seen the question in many places. I'm using Microsoft Visual Studio Professional 2022 and the .NET 8 - released in November 2023. It never occurred with previous versions of .NET (I used a bit 6 and much more 7).

I think this new version of .NET was released a bit too early only because Microsoft decided to do that every year in November. Since then, many significant updates for IDE. Yesterday, after the last one, I started getting compiler warnings with code 'RZ10012- Found markup element with unexpected name' in the error pane.

This error pane window is one of the most important tools offered by Visual Studio IDE. It is always active on the bottom of my screen; the goal is to have no messages or warnings. That helps me become a better programmer (I hope). Anyway, after hours of searching the internet, the following solution worked in my case:

1. close all code windows

2. right-click on the solution in Explorer and select 'clean'

3. rebuild all

4. restart Visual Studio

Exactly this order, without skipping any of the steps. All warnings are gone! I hope it will help somebody. Have a good day, and keep coding!