2

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

ASP.NET MVC 4 installer (Visual Studio 2010) is incompatible with Microsoft .NET Frameowrk 4.5

单击确定后,它向我显示带有“我拒绝”和“我接受”的先决条件页面显示为灰色且不可单击。

软件要求页面说:

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

我究竟做错了什么?

4

2 回答 2

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

于 2012-02-17T14:08:32.303 回答
0

我也遇到了这个问题,它不会安装 MVC 4,但我设法通过下载 ASP.NET MVC 4 来安装它,它提供了一个用于开发 Web 应用程序的模型-视图-控制器(MVC)框架http://www.microsoft .com/download/en/details.aspx?id=27419

一旦安装它会说它不成功,但是如果你检查你的 VS Studio 2010,你将能够创建和运行 MVC 4 产品

于 2012-03-28T09:24:47.557 回答