Great Tool for Converting WebForms Views to Razor Views

Sam Rueby.NET Tips, Web Development 1 Comment

The ASP.NET MVC Razor view engine has been out for a while now. I think it’s great for improving readability in complex MVC views. Especially with its magical-context-guessing ability, it greatly improves readability over the WebForms syntax.

I found a great tool from Telerik that helped me convert an entire solution to Razor syntax. The word ‘helped’ is important here because it wasn’t completely automatic but it definitely got me through the tedious parts. It gets particularly confused with commented-out code. I had to entirely remove a few comments that just had plain html elements in them. Whatever, it got the job [eventually] done.

https://github.com/telerik/razor-converter