Ten steps to teach you asp.net MVC2 project upgrade MVC 3 RC

Source: Internet
Author: User
Keywords Upgrade in the eye teach you like Next ten steps
Tags .net asp asp.net click document file jquery microsoft

Microsoft released the release candidate for ASP.net MVC3 (rc:release-candidate) at number 10th, which provides IntelliSense features such as the Razor view engine, as well as online licensing. Are envious's classmates eager to upgrade their existing projects? Here I will be the official releasenotes in the upgrade method translation summed up, to facilitate those who do not like to see the English document Rory the general students.

Translation

To manually upgrade an existing ASP.net MVC2 project to asp.net MVC3 (RC), we need the following steps:

1. Create a new ASP.net MVC3 project, we will use some of the files included in the upgrade.

2. Copy the following files from the new project to the existing ASP.net MVC2 project, which are:

· /scripts/jquery.unobtrusive-ajax.js

· /scripts/jquery.unobtrusive-ajax.min.js

· /scripts/jquery.validate.unobtrusive.js

· /scripts/jquery.validate.unobtrusive.min.js

· /views/web.config

3. If your existing ASP.net MVC2 project contains a number of area, you need to replace the/views/web.config file with the original file in all area.

4 in the project's Web.config file (there are three in the web.config in the root directory, 4 in the Web.config file under the Views folder) to search for and replace the following:

SYSTEM.WEB.MVC, VERSION=2.0.0.0→SYSTEM.WEB.MVC, version=3.0.0.0

5. Delete the SYSTEM.WEB.MVC reference in the solution browser (because it refers to a large dll in asp.net MVC2) and then add a reference to SYSTEM.WEB.MVC (v3.0.0.0). Then refer to System.WebPages.dll and System.Web.Helpers.dll separately.

6. Right-click the project name in the Solution Explorer and select Uninstall Project. Next, right-click the project name and select Edit Projectname.csproj.

7. Locate the Projecttypeguids node in projectname.csproj and replace {f85e285d-a4e0-4152-9332-ab1d724d3325} with { E53F8FEA-EAE0-44A6-8774-FFD645390401}.

8. After you save the changes in step 7th, right-click the item and reload it.

9. Add the following two to the Assemblies node in Web.config in the application root directory

10. If the project references other Third-party libraries that are compiled in collaboration with DLLs in ASP.net MVC2, you need to make the following changes

Success, enjoy the charm of asp.net mvc.

Add: If the Tagbuilder class is used in the project, refer to System.Web.WebPages.dll.

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.