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

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

net8.0dotnet new updatefrom the command line. Then create the Blazor porject from the command line usingdotnet new blazor -f net9.0 -n BlazorTest9and see if that works. If it does, trydotnet new blazor -f net8.0 -n BlazorTest8to see if it works with .NET 8. (Run the commands from an empty directory of course.)