简体   繁体   English

使用msbuild和rake进行asp mvc部署

[英]asp mvc deployment with msbuild and rake

I have an asp mvc project. 我有一个ASP MVC项目。 I'm wondering, what's the difference between building the solution and then copying bin and all other views/scripts/images/style sheets and publishing (besides the obvious work of copying files). 我想知道,构建解决方案然后复制bin和所有其他视图/脚本/图像/样式表并发布(除了复制文件这一显而易见的工作)之间有什么区别。 I'm asking because i want to automate my deployment with rake and I can't use web deployment because it's not compatible with mono. 我问是因为我想用rake自动化我的部署,并且我不能使用Web部署,因为它与Mono不兼容。

Depending on your version of Visual Studio and settings, Publishing typically does two main things in addition to the build 根据您的Visual Studio版本和设置,发布通常会执行构建之外的两件事

  • Packages the solution -- usually into some standard format (WebDeploy, Web Project) 将解决方案打包-通常打包成某种标准格式(WebDeploy,Web Project)

  • Automates deployment -- typically hooks something like MSdeploy ("web deploy") to synchronize the site with a local or remote IIS setting 自动化部署-通常挂接诸如MSdeploy(“网络部署”)之类的内容,以将站点与本地或远程IIS设置同步

So in terms of what you are deploying, there is no difference . 因此,就您要部署的内容而言, 没有区别 The build and output files are the same. 生成文件和输出文件相同。 Publishing is simply allowing a developer a simple path of packaging + deploy, which you are handling with rake. 发布只是为开发人员提供了打包+部署的简单路径,您可以使用rake进行处理。

顺便说一句,您是否看过Uppercut这个工具在您的构建过程中可能非常有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM