I created a tag helper and wanted to use that in my Blazor sample project. However, when I want to use the tag helper, the compiler complains about that:
CS0103 The name 'StartTagHelperWritingScope' does not exist in the current context FirstBlazorApp
.
What is additionally required to make tag helpers work in Blazor?
Tag helpers are not supported in Blazor. At least not as of now.
On A blazor page you would use a blazor component, this is like a TagHelper but it runs client side and is like an Angular component (or similar in any other client side JS framework) is that respect. TagHelpers run on the Server and blazor components run on the client, both allow you to create new tags. a simple component in the blazor same is the NavMenu which lives currently in the Shared folder.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With