Could you please provide us with more complete reproducer?
I cannot call the private property in the razor component. Additionally, this example does not compile for me since the the property needs to be referred via the class.
I’m not a blazor expert so I might be missing something, however a more complete repro would be super useful.
@Mary Any update on this? I have noticed that this does not get flagged when I use the analyzer package. It seems to only manifest in the Sonar IDE plugin. Thanks.
@groogiam Hello!
I’ll take a look today and come back to you with an update.
Apologies for the delay, we have limited capacity at the moment.
Thanks for your understanding.
Hello @groogiam this is probably related to the IDE extension.
I asked the corresponding team to take a look.
We’ll come back once we have news.
Thanks a lot for the repro - it made the investigation much easier.
We unfortunately do not yet support Razor file analysis in Rider (both .razor and .razor.cs). The issue here is that these files are still being analyzed when they shouldn’t be.
I’ve identified one scenario where this happens: if you open your project with a Razor file already open, it will be analyzed.
For now, the workaround will be to prevent Razor files from being analyzed in such cases. In the long term, we hope to add full support for them in Rider.