从Web平台安装程序安装ASP.NET MVC 4

sha*_*bus 2 c# asp.net-mvc web-platform-installer

当我启动安装程序时,我会看到ASP.NET MVC 4框架的产品详细信息.当我点击"安装"它然后给我一个错误对话框:

ASP.NET MVC 4 installer (Visual Studio 2010) is incompatible with Microsoft .NET Frameowrk 4.5
Run Code Online (Sandbox Code Playgroud)

单击"确定"后,显示"我拒绝"和"我接受"的先决条件页面显示为灰色且无法点击.

" 软件要求"页面显示:

Visual Studio的ASP.NET MVC 4组件需要PowerShell 2.0以及带有Service Pack 1的Visual Studio 2010或带有Service Pack 1的Visual Web Developer Express 2010.

我究竟做错了什么?

Mag*_*son 14

安装注意事项说:

This release is not compatible with the .NET Framework 4.5 Developer Preview. You must uninstall the .NET 4.5 Developer Preview before installing the ASP.NET MVC 4 Beta.

您可能已安装,因此应卸载.NET 4.5 Dev Preview.

更新:
一种替代方法是仅使用NuGet安装所需的MVC 4组件.
MVC4:来自NuGet
Web API:NuGet上可用的ASP.NET Web API和HttpClient

  • 在添加/删除我没有.net 4.5或VS 11中的任何内容,但仍然收到此错误.我尝试安装4.5并删除它,再次安装v4,但没有运气.真的不知道它在哪里检测到4.5安装. (2认同)