ArticleDirectory
Microsoft released ASP on the 10th.. Net mvc3 candidate release version (RC: release-candidate), which provides intelligent sensing and other features of the razor view engine, and also has online licenses. Are you eager to upgrade your current project? Here, I will summarize the upgrade methods in the official releasenotes to help the majority of students who do not like to read Luo liyan's English documents.
Translation
To manually upgrade an existing ASP. NET MVC2 project to ASP. NET mvc3 (RC), follow these steps:
1. Create a new ASP. NET mvc3 project. We will use some files included in the upgrade.
2. Copy the following files from the new project to the existing ASP. NET MVC2 project. They 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 several areas, copy the/views/Web. config file to all areas to replace the original file.
4. Search for and replace the following content in the project's web. config file (three in Web. config under the root directory and four in Web. config under the views folder:
System. Web. MVC, version = 2.0.0.0 → system. Web. MVC, version = 3.0.0.0
5. delete system. web. MVC reference (because ASP is referenced here. net MVC2 large DLL) and then add a system. web. reference of MVC (v3.0.0.0. Then reference system. webpages. dll and System. Web. helpers. dll respectively.
6. In the solution browser, right-click the project name and select uninstall project. Right-click the project name and select edit.Projectname. Csproj.
7. InProjectnameThe projecttypeguids node is located in. csproj and the {F85E285D-A4E0-4152-9332-AB1D724D3325} is replaced with {E53F8FEA-EAE0-44A6-8774-FFD645390401 }.
8. Save the changes in step 1, right-click the project, and reload it.
9. ApplicationProgramAdd the following two assemblies nodes in Web. config under the root directory:
10. If the project references other third-party class libraries that use DLL collaborative compilation in ASP. NET MVC2, you need to make the following changes:
To be successful, enjoy the charm of ASP. net mvc.