如何最好地在服务器上安装 MVC 3?
现在 MVC 3 工具更新已经发布,这就是我在 Web 平台安装程序上看到的全部内容 — 我不再看到 MVC 3?这是因为工具更新本质上是 MVC 3 PLUS 对开发环境的增强吗?据推测,服务器上不需要添加任何这些内容,因此我认为 MVC 3 仍将提供用于服务器安装。
那么我可以/应该从服务器上的 Web 平台安装程序安装 MVC 3“工具更新”吗?
Now that MVC 3 Tools Update has been released, that's all I see on the Web Platform Installer -- I no longer see MVC 3? Is this because the Tools Update is essentially MVC 3 PLUS enhancements to the development environment? Presumably, none of these additions are needed on a server so I thought that MVC 3 would still be offered for server installs.
So can/should I install the MVC 3 "Tools Update" from the Web Platform installer on a server?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我知道这对你没有帮助,Decker,但它可能对其他人有帮助:
在服务器上获取 MVC 的最简单方法是使用“添加可部署依赖项...”菜单:
对于部署 SQL CE 也很有用。
I know this doesn't help you Decker, but it may help others:
The easiest way to get MVC on the server is by using the "Add Deployable Dependancies..." menu:
Also useful for deploying SQL CE.
您可以在服务器上使用 WebPI 的安装程序。它将检测您是否未安装 Visual Studio,并且仅安装运行时。
您还可以尝试解压缩 安装程序文件并且仅复制运行时MSI,但我认为这太过分了。
You can use the installer from WebPI on the server just fine. It will detect if you don't have Visual Studio installed and will only install the runtime.
You could also try unzipping the installer file and only copying the runtime MSIs but I think that's overkill.
您还可以从命令行使用 Web 平台安装程序:
如果您的服务器无法访问 Internet,您可以使用具有访问权限的计算机上的脱机标志来下载所需安装文件的副本。
因此,您的流程如下:
准备安装程序的缓存版本
从缓存安装(将文件夹结构复制到目标计算机)
You could also use Web Platform Installer from the command line:
If your servers don't have internet access, you can use the offline flag from a machine which does have access to download a copy of the required install files.
So your flow would be as follows:
Prepare Cached Version of Installers
Install from cache (copy folder structure to target machine)
您不需要在服务器上安装 MVC3。
只是 将 MVC DLL 与您的项目一起复制。
You don't need to install MVC3 on a server.
Just copy the MVC DLLs along with your projects.