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

Blazor cannot find variables in related C# class file

$
0
0

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:enter image description here

But it is in the related CS file:enter image description here

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:enter image description here

Did any if you already met such issue?

Thanks!G


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>