asp.net-mvc 在服务器上安装 ASP.NET MVC 4

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12057540/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-08 02:11:25  来源:igfitidea点击:

Installing ASP.NET MVC 4 on a server

asp.net-mvcasp.net-mvc-4

提问by Bryan Slatner

How does one go about installing ASP.NET MVC 4 on a server. The Web Platform Installer insists on installing all kinds of Visual Studio 2010 stuff. I don't see a "server only" installation. For example, it wants to install "Visual Studio 2010 Core SP1" and "Visual Web Developer Express".

如何在服务器上安装 ASP.NET MVC 4 。Web 平台安装程序坚持安装各种 Visual Studio 2010 的东西。我没有看到“仅服务器”安装。例如,它要安装“Visual Studio 2010 Core SP1”和“Visual Web Developer Express”。

回答by Lucero

Get the standalone installer from http://www.asp.net/mvc/mvc4

http://www.asp.net/mvc/mvc4获取独立安装程序

回答by Captain Kenpachi

The safest thing to do would be to mark your reference to System.Web.Mvc as "copy local = true" in the reference's properties window. When you do a deploy, it will get copied into your bin folder.

最安全的做法是在引用的属性窗口中将您对 System.Web.Mvc 的引用标记为“copy local = true”。当您进行部署时,它将被复制到您的 bin 文件夹中。

It feels a bit backwards, but there you go.

感觉有点倒退,但你去了。

回答by user1477388

I would install and run on local host, then use Visual Studio's "publish" to publish it to a web server. You can install it via http://www.asp.net/mvc. If you're asking how to install it on IIS, then read this:

我会在本地主机上安装并运行,然后使用 Visual Studio 的“发布”将其发布到 Web 服务器。您可以通过http://www.asp.net/mvc安装它。如果您询问如何在 IIS 上安装它,请阅读以下内容:

http://blogs.msdn.com/b/rickandy/archive/2011/04/22/test-you-asp-net-mvc-or-webforms-application-on-iis-7-in-30-seconds.aspx

http://blogs.msdn.com/b/rickandy/archive/2011/04/22/test-you-asp-net-mvc-or-webforms-application-on-iis-7-in-30-seconds。 aspx