如何在Blazor中使用TagHelpers? [英] How to use TagHelpers in Blazor?

查看:153
本文介绍了如何在Blazor中使用TagHelpers?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个标签助手,并希望在我的Blazor示例项目中使用它。
但是,当我要使用标签助手时,编译器会抱怨:

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名称'StartTagHelperWritingScope'并不在当前上下文中存在FirstBlazorApp

要使标记助手在Blazor中工作还需要做什么?

What is additionally required to make tag helpers work in Blazor?

推荐答案

Blazor不支持标签帮助器。至少到目前为止还没有。

Tag helpers are not supported in Blazor. At least not as of now.

这篇关于如何在Blazor中使用TagHelpers?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆