Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

.razor code not recognized (even in new blazor project)

$
0
0

Opened a blazor project for the first time in a while and suddenly no code or components are recognized (even on newly created projects):ss1

When I hover over components no auto-completion suggestions, no details, code in @code {} is not recognized. .cs files work fine.

What I've tried:

  • deleting .vs, obj, bin folders
  • clean solution and rebuilding
  • open/closing visual studio
  • pull latest version of the project which worked on somebody else's pc
  • repairing visual studio 2022 (I have the same configurations as the working vs2022)
  • reset vs (Intellisense) settings
  • restarting pc
  • disabling all vs extensions
  • update settings and vs2022 to latest version
  • double checked if I have Razor Language Services

It worked one time after I took a half hour break (I think I did a reinstall of ASP.NET and web development before the break), so I closed vs and reopened the solution and it stopped working again. But that's programming I guess..

Anybody else ever had this issue? I couldn't seem to find anything of use online


Viewing all articles
Browse latest Browse all 4839

Trending Articles