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 Rory in English documents of the general students.
Translation
To manually upgrade an existing ASP.net MVC2 project to asp.net MVC3 (RC), we need the following steps:
1, casually 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:
3, if your existing ASP.net MVC2 project contains a number of area, you need to copy the/views/web.config file to all the area under the replacement of the original file.
4, in the project Web.config file (in the root directory of the web.config in three, the Views folder under the Web.config file in 4), respectively, search 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, find the Projecttypeguids node in projectname.csproj, 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 the 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:
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.