the @namespace directive is not working in Blazor

Viewed 1117

I have a Razor class library with a Blazor component and want to set a namespace for that component but I get a compile error:

@namespace MY.UI.Blazor.Component;

And I get the following compile error:

Error RZ1014: The 'namespace' directive expects a namespace name.

1 Answers

remove the ; Docs are here.

@namespace MY.UI.Blazor.Component
Related