r4mvc

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

Make T4MVC work with ASP.NET 5

偶尔善良 提交于 2019-12-07 00:21:40
问题 According to the latest comments in this thread, .tt templates will now after all be supported in ASP.NET 5 starting with Visual Studio Update 1. Which IMHO would be great because after using T4MVC for years, I certainly don't wanna go back to using magic strings for route/view names (error prone and not refactoring-friendly). However, I can't quite get it to work with ASP.NET 5 RC and Visual Studio Professional 2015 Update 1. Here's what I've tried: Adding the T4MVC NuGet (3.16.5) to a blank

T4MVC alternatives for ASP.NET 5?

主宰稳场 提交于 2019-12-05 12:33:25
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. 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 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

Make T4MVC work with ASP.NET 5

﹥>﹥吖頭↗ 提交于 2019-12-05 04:55:07
According to the latest comments in this thread, .tt templates will now after all be supported in ASP.NET 5 starting with Visual Studio Update 1. Which IMHO would be great because after using T4MVC for years, I certainly don't wanna go back to using magic strings for route/view names (error prone and not refactoring-friendly). However, I can't quite get it to work with ASP.NET 5 RC and Visual Studio Professional 2015 Update 1. Here's what I've tried: Adding the T4MVC NuGet (3.16.5) to a blank ASP.NET 5 solution: nope, CoreCLR complains and no .tt files are added to project: Error NU1002 The