从 Web 平台安装程序安装 ASP.NET MVC 4
当我启动安装程序时,我会看到 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 或 Visual Web 带有 Service Pack 1 的 Developer Express 2010。
我做错了什么?
When I launch the installer, I see the product details of the ASP.NET MVC 4 framework. When I click 'Install' it then gives me an Error dialog:
ASP.NET MVC 4 installer (Visual Studio 2010) is incompatible with Microsoft .NET Frameowrk 4.5
After I click Ok, It shows me the prerequisites page with "I Decline" and "I Accept" is grayed out and not clickable.
The Software Requirements page says:
The ASP.NET MVC 4 components for Visual Studio require PowerShell 2.0
and either Visual Studio 2010 with Service Pack 1 or Visual Web
Developer Express 2010 with Service Pack 1.
What am I doing wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
安装说明说:
此版本与 .NET Framework 4.5 开发人员不兼容预览。在安装 ASP.NET MVC 4 Beta 之前,您必须卸载 .NET 4.5 Developer Preview。
您可能已经安装了该软件,因此应该卸载 .NET 4.5 Dev Preview。
更新:
一种替代方法是使用 NuGet 仅安装所需的 MVC 4 组件。
MVC4:来自 NuGet
Web API:NuGet 上提供 ASP.NET Web API 和 HttpClient
The installation notes says:
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.
You probably have that installed, and should therefore uninstall .NET 4.5 Dev Preview.
UPDATE:
One alternative way is to only install the needed MVC 4 components using NuGet.
MVC4: From NuGet
Web API: ASP.NET Web API and HttpClient Available on NuGet
我也遇到了这个问题,它无法安装 MVC 4,但我设法通过下载 ASP.NET MVC 4 来安装它,它提供了一个用于开发 Web 应用程序的模型-视图-控制器 (MVC) 框架 http://www.microsoft.com/download/en/details.aspx?id=27419。
一旦安装它会说它不成功,但是如果你检查你的 VS Studio 2010,你将能够创建并运行 MVC 4 产品
I too was having this problem it would not install MVC 4, but i have managed to install it by downloading the ASP.NET MVC 4 provides a Model-View-Controller (MVC) framework for developing web applications http://www.microsoft.com/download/en/details.aspx?id=27419.
Once it has installed it will say that it was unsuccessful, but id you check your VS Studio 2010 you will be able to create and run an MVC 4 product