'Blazor linter problem when inheriting a component

i have a simple component called BaseGrid.razor

and then I have another component called CustomGrid.razor

@inherits BaseGrid

...

@{
    base.BuildRenderTree(__builder);
}

...

when using Rider __builder gets marked in red saying

cannot resolve symbol '__builder'

but the project builds just fine

this problem also occur when using ReSharper with Visual Studio

i don't know if its a ReShaper problem or Visual Studio does this too but seeing all the files underlined in red is giving me an headache when trying to find with files have a real problem



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source