如何在服务器上安装MVC 3?

How*_*ley 30 asp.net-mvc web-platform-installer

现在已经发布了MVC 3工具更新,这就是我在Web平台安装程序上看到的 - 我不再看到MVC 3了吗?这是因为Tools Update本质上是对开发环境的MVC 3 PLUS增强功能吗?据推测,服务器上不需要这些添加,所以我认为MVC 3仍然可以用于服务器安装.

那么我可以/应该从服务器上的Web平台安装程序安装MVC 3"工具更新"吗?

Dar*_*ren 25

我知道这对Decker没有帮助,但它可以帮助其他人:

在服务器上获取MVC的最简单方法是使用"Add Deployable Dependancies ..."菜单:

菜单

窗口

对于部署SQL CE也很有用.

  • 你刚刚节省了我几个小时! (5认同)

mar*_*ind 17

您可以在服务器上使用WebPI中的安装程序.它将检测您是否安装了Visual Studio并且只安装运行时.

您也可以尝试解压缩安装程序文件并仅复制运行时MSI,但我认为这太过分了.


Dav*_*tin 14

您还可以从命令行使用Web Platform Installer:

webpicmd /install /Products:MVC3Runtime /log:webpi.log /accepteula /SuppressReboot
Run Code Online (Sandbox Code Playgroud)

如果您的服务器没有Internet访问权限,则可以使用有权下载所需安装文件副本的计算机的脱机标记.

所以你的流程如下:

准备安装程序的缓存版本

webpicmd /Offline /Products:MVC3Runtime /log:webpi.log /Path:"%~dp0wbpiCache"
Run Code Online (Sandbox Code Playgroud)

从缓存安装(将文件夹结构复制到目标机器)

webpicmd /install /Products:MVC3Runtime /log:webpi.log /accepteula /SuppressReboot /XML:"%~dp0wbpiCache"
Run Code Online (Sandbox Code Playgroud)


SLa*_*aks 7

您不需要在服务器上安装MVC3.

只需将MVC DLL与项目一起复制即可.

  • 我确实读过这是一个选择.但是,支持将其安装在服务器上 - 将其置于GAC中并使其更具可修补性. (2认同)