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

How to suppress c# compiler warning in a razor file?

$
0
0

if I suppress it like that in the razor file

@{ #pragma warning disable CS0618 }@inject SignOutSessionStateManager SignOutManager@{ #pragma warning restore CS0618 }

Visual Studio is satisfied with that code, but dotnet compile still throws CS0618 warning.

Also it does not seem to be possible in include @inject into @{ ... } construct


Viewing all articles
Browse latest Browse all 4839

Trending Articles



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