Convert the ASPX view of ASP. NET MVC to a razor view

Source: Internet
Author: User

How does the ASP. NET MVC2.0 Project upgrade to 3.0??

Introduction: After the introduction of MVC in March 2009, it can be said that the pace of development is very fast, only in less than 3 years, MVC version has reached from 1.0 to 4.0, especially the transition between 2.0 and 3.0 can be said to be very large, so we used to develop a 2.0 version of the project has gone, but also to re-development, more trouble ah, I tell you here, completely unnecessary, because we have a special conversion tool can achieve project conversion, I will explain in detail This process, first you need to have a development environment and a project developed with MVC2.0, the next steps listen to me slowly

1. Build Razorconverter with the famous Telerick team!

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

2. Download down unzip and you can see these files

  

3. Double-click the. sln file to build the solution in VS

1. Locate the exe file under the Aspx2razor\bin\debug folder and copy the three files.

2) Set up a folder in the D disk named Mvc_demo, inside the set up a folder tool, copy the files copied to the inside,:

    

4. Find a MVC2.0 item in the same directory as the tool folder under the file:

  

5. Find the path to the view file inside the MVC2

D:\MVC_Demo\MVC2\MVC2\Views

6. We are not allowed to run Aspx2razor.exe directly here, we have to go to the command line to run, enter the following command

  

7. So we can see a folder below the D drive mvc_demo_transition

  

8. Open this folder we look inside the view folder below the project has been successful,:

  

Source: http://www.cnblogs.com/hanyinglong/archive/2012/10/05/2712633.html GitHub Open Source project: Https://github.com/kencery

Convert the ASPX view of ASP. NET MVC to a razor view

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.