Enhanced Telerik’s WebForms (ASPX, ASCX) to Razor (CSHTML) Converter

I recently came across a command line tool, developed by Telerik, which allows you to convert Web Forms types MVC Views (ASPX, ASCX) to Razor CSHTML Views. You can find more information here. You may also download full source code from Git.

I did some small enhancements to this command line tool, and contributed to the project.

  1. Added GUI support.
  2. Select and convert multiple Views.
  3. Views filtering – You would only be able to select ASPX/ASCX Views.
  4. VS2010 integration – VS Extensions.

If you are interested trying it out, you can download the VS Extension from the VS Gallery.

For most developers converting web forms Views to Razor is a once off task. So if you don’t like to have it part of VS Extensions, click here to download as a standalone tool.

Unfortunately this tool doesn’t support VBHTML.  If you are interested to know more on VBHTML syntax, Jemison White has a nice blog post.

Here  is another post by Scott Hanselman on Mixing Razor Views and Web Forms.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s