I have upgraded my Blazor project from .NET 6 to .NET 8.
After I have the issue, that my Blazor componennt cannot see the variables stored in related CS file:

But it is in the related CS file:

If I remove the partial keyword from class definition, it immediately writing error that partial keyword is missing.
If I create the variables directly into razor files @code{} block, it immediately writes the variables already defined:

Did any if you already met such issue?
Thanks! G
Put @ before _email. It should work. If it doesn't then join the club :) VS 2022 on Blazor is full of idiosyncrasies like this. Check out the issue I have raised on GitHub:
https://github.com/dotnet/razor/issues/9696