The nexus of MSDeploy, MSBuild and Hudson
- by roufamatic
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
Perform the build (by calling out to the project file with my desired build configuration)
Call MSDeploy to do all the same things that the "Publish" command is doing, except copy the files to a different folder.
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?