看来只有三个选项:
So, seems there are only three options:
所以没有简单的方法来迁移 Razor 代码片段,而不需要跳过障碍.
So no simple way to migrate Razor snippets, without jumping through hoops.
编辑
所以 看起来像 html helpers 毕竟可用.他们只是没有被正确记录!
So looks like html helpers are available after all. They just haven't been properly documented!