"Add the 'const' modifier to '__typeHelper'." razor file warning problem on my environment

  • Operating system: Win 11 Pro 23H2
  • Visual Studio version: 17.12.1
  • SonarQube for Visual Studio plugin version: 10.7.0.110445
  • Programming language you’re coding in: C# (problem in razor files)
  • Is connected mode used: no

Hello,

These errors doesn’t exist on my friends environment but I see them. I treat warnings as errors. Doesn’t prevent me from building my Blazor project. Every razor file has this.

I tried:
deleting and re-cloning the repository,
deleting bin and obj folders on all my Blazor projects

No result. Anything I can do?


I have found this post but no help:
“Add the ‘const’ modifier to ‘__typeHelper’.” warning problem on my environment - SonarQube for IDE / Visual Studio - Sonar Community

Hi,

Could you double-check this, please? The current version is 8.15. :sweat_smile:

 
Thx,
Ann

1 Like

Yep, my version was 10.7.0.110445.

I’ve updated to latest Sonar plugin and also updated Visual Studio and problem solved.

Thank you for your time.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.