Tool for converting WebForms Views to Razor (C# Only)
Перейти к файлу
Esben Sune Rasmussen 3028034882 fix: first letter of relative paths is removed (#20)
Had a minor issue where the first letter of relative paths was removed
2019-12-06 08:34:56 +02:00
References Initial version 2011-01-17 15:25:20 +02:00
Telerik.RazorConverter Do not try to descend into the children of empty tags 2016-05-18 17:40:14 +03:00
Telerik.RazorConverter.Tests Do not try to descend into the children of empty tags 2016-05-18 17:40:14 +03:00
Telerik.RazorConverter.Tests.Common Initial version 2011-01-17 15:25:20 +02:00
Telerik.RazorConverter.Tests.Integration Applied changes from stevedavis the issuedisscussion #1 to parse aspx tags within javascript 2016-05-18 17:20:43 +03:00
aspx2razor fix: first letter of relative paths is removed (#20) 2019-12-06 08:34:56 +02:00
.gitignore Applied changes from stevedavis the issuedisscussion #1 to parse aspx tags within javascript 2016-05-18 17:20:43 +03:00
LICENSE Initial version 2011-01-17 15:25:20 +02:00
README.md Updated README.md according to arguments requested in application. 2016-05-18 17:20:43 +03:00
Telerik.RazorConverter.sln Modified the converter, so that it also convert aspx-imports to razor-usings. 2011-07-23 01:22:45 +02:00

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.