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
Installing ASP.NET MVC 4 on a server
提问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 上安装它,请阅读以下内容:

