简体   繁体   中英

asp mvc deployment with msbuild and rake

I have an asp mvc project. 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). 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.

Depending on your version of Visual Studio and settings, Publishing typically does two main things in addition to the build

  • Packages the solution -- usually into some standard format (WebDeploy, Web Project)

  • Automates deployment -- typically hooks something like MSdeploy ("web deploy") to synchronize the site with a local or remote IIS setting

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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