T4MVC alternatives for ASP.NET 5?

自作多情 提交于 2019-12-22 08:06:32

问题


T4MVC is not supported yet or ever in ASP.NET 5. Is there any other similar solution ? I need strongly typed views and controllers names.


回答1:


Looks like there is a side project called R4MVC but it hasn't been updated in 5 months.

R4MVC is a Roslyn code generator for ASP.NET MVC vnext apps that creates strongly typed helpers that eliminate the use of literal strings in many places




回答2:


As Stafford Williams pointed out, a side project was started a long time ago, but was stalled due to (at the time) breaking changes in the Roslyn compiler.

Luckily, the project was revived, and R4MVC has just released it's first alpha build, with more changes coming soon.

While the project works somewhat differently, and isn't using t4 templates, the end result is the same, and we're working to achieve feature parity with T4MVC in the near future.



来源:https://stackoverflow.com/questions/33737483/t4mvc-alternatives-for-asp-net-5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!