Because of the problem two weeks ago, you can open a previous project without razor. However, a razor website of asp.net mvc3 still cannot load projects. The reason is that Microsoft ASP. net mvc 4-Visual Studio 2010 Tools cannot be installed, whether it is to use the installation package downloaded by the website or Web Installer, view the log
OS Version = 6.1.7601, Platform 2, Service Pack 1
OS Description = Windows 7-x64 Ultimate Edition Service Pack 1
CommandLine = "C: \ TDDOWNLOAD \ AspNetMVC3ToolsUpdateSetup \ setup.exe"
Using Simultaneous Download and Install mechanic
Operation: Installing
Package Name = Microsoft ASP. net mvc 3 Tools Update
Package Version = 3.0.20406.0
User Experience Data Collection Policy: Disabled
Number of applicable items: 2
MSI (C: \ TDDOWNLOAD \ AspNetMVC3ToolsUpdateSetup \ AspNetMVC3VS2010Tools. msi) Installation succeeded. Msi Log: Microsoft ASP. net mvc 3 Tools Update_20120226_211129089-MSI_AspNetMVC3VS2010Tools.msi.txt
MSI (C: \ TDDOWNLOAD \ AspNetMVC3ToolsUpdateSetup \ NuGet. msi) Installation failed. Msi Log: Microsoft ASP. net mvc 3 Tools Update_20120226_211129089-MSI_NuGet.msi.txt
MSI (C: \ TDDOWNLOAD \ AspNetMVC3ToolsUpdateSetup \ AspNetMVC3VS2010Tools. msi) Uninstall succeeded. Msi Log: Microsoft ASP. net mvc 3 Tools Update_20120226_211129089-MSI_AspNetMVC3VS2010Tools.msi.txt
Final Result: Installation failed with error code: (0x80070643), "a serious error occurred during Installation" (Elapsed time: 0 00:08:06 ).
======================================
Therefore, an old version of NuGet cannot be installed, so that my ASP. NET MVC3 Tools are rolled back together. Why can't NuGet be installed? Because the latest version of NuGet 1.6 has been installed before, and the upgrade from 1.5 to 1.6 has been greatly updated, so that its online update is not successful, you must uninstall 1.5 to install 1.6.
There are two solutions for this situation, one is to uninstall NuGet1.6 plug-in before installation, and the other is to decompress ASP. NET MVC3 Tools installation package, run the vs10-kb2483190-x86 upgrade file and aspnetmvc3vs2010tools. msi. I use the latter.
Now the MVC2, MVC3, and MVC4 project templates appear in the new project. Solve the problem.
The website also has other solutions, but they may be different from my situation for reference only:
Failed to install asp.net MVC3 official version under win2003 + vs2010 after Asp. net mvc 3 project templates not showing up
I hope this article will help you!