The nexus of MSDeploy, MSBuild and Hudson

Posted by roufamatic on Stack Overflow See other posts from Stack Overflow or by roufamatic
Published on 2010-06-04T19:46:07Z Indexed on 2010/06/09 11:32 UTC
Read the original article Hit count: 563

Hey, I have experience with MSBuild and Hudson, but am new to MSDeploy. I currently have a simple solution with one web application project. I set up a build configuration and am using the "Publish" command (Visual Studio 2010) to simply copy files to a local folder and do config file replacement.

What I would like to do is automate this using Hudson. So I figure I'll create an MSBuild script that will

  1. Perform the build (by calling out to the project file with my desired build configuration)
  2. Call MSDeploy to do all the same things that the "Publish" command is doing, except copy the files to a different folder.
  3. Configure Hudson to poll subversion and perform steps 1 & 2 when changes are detected

Step 2 is where I'm getting lost. I assumed that the project.xml file that was created by VS2010 corresponded to -verb:sync -source:manifest=project.xml options, but msdeploy is choking on that xml file so clearly that's not what it's intended for.

What command is Visual Studio executing under the covers to perform the config file replacement and the file copy? How do I automate the Publish command?

© Stack Overflow or respective owner

Related posts about visual-studio-2010

Related posts about msbuild