我将Beta 7项目升级到Beta 8,我在project.json上升级了:
"Microsoft.AspNet.Razor.Runtime": "4.0.0-beta8"
在自定义TagHelper上我有:
[TargetElement("a", Attributes = RouteIsName)]
但无法识别TargetElement和Attributes ......
当我将其更改为:
"Microsoft.AspNet.Razor.Runtime": "4.0.0-beta8-15575"
然后重新确定TargetElement和Attributes。
问题是我开始遇到不同版本的问题......
Beta-8发布中的TargetElement和Attributes在哪里?
答案 0 :(得分:2)
在测试版8中,TargetElementAttribute
已重命名为HtmlTargetElementAttribute
:
[HtmlTargetElement("a", Attributes = RouteIsName)]