Tool for converting WebForms Views to Razor (C# Only)
The razor-converter is a simple tool for converting Microsoft® ASP.NET MVC WebForms Views to the new Razor syntax. It was initially developed by the Telerik ASP.NET MVC team for internal use, but it now lives its own life on GitHub.
For general tips on converting WebForms Views to Razor Views, see these blog posts:
Command line usage:
aspx2razor [output-directory] [options]
Options: -r: Convert directories and their contents recursively (Contributed by Jeffrey T. Fritz)
A file with cshtml extension will be created for each input file. Existing files will be OVERWRITTEN, so you must be very careful.