Skip to content
Tool for converting WebForms Views to Razor (C# Only)
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
References
Telerik.RazorConverter.Tests.Common Initial version Jan 17, 2011
Telerik.RazorConverter.Tests.Integration Applied changes from stevedavis the issuedisscussion #1 to parse aspx… May 18, 2016
Telerik.RazorConverter.Tests Do not try to descend into the children of empty tags May 18, 2016
Telerik.RazorConverter Do not try to descend into the children of empty tags May 18, 2016
aspx2razor Changed the Console-app's arguments to take source-directory and targ… May 18, 2016
.gitignore Applied changes from stevedavis the issuedisscussion #1 to parse aspx… May 18, 2016
LICENSE Initial version Jan 17, 2011
README.md Updated README.md according to arguments requested in application. May 18, 2016
Telerik.RazorConverter.sln

README.md

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.

Known limitations:

  • The tool only works with views and does not deal with the project structure and master pages.
  • Expressions in script tags are not converted
  • Due to the differences between the view engines the automatic conversion will sometimes fail or produce incorrect results. See the integration tests for specific scenarios that are not covered.

For general tips on converting WebForms Views to Razor Views, see these blog posts:

Help specific to the Telerik Extensions for ASP.NET MVC

Command line usage:

aspx2razor <input-directory> [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.

You can’t perform that action at this time.