开发者

TFS Automated Builds to Code Packages

I would like to hear the best practices or know how people perform the following task in TFS 2008.

I am intending on using TFS 开发者_如何学JAVAfor building and storing web applications projects. Sometimes these projects can contain 100's of files (*.cs, *.acsx etc)

During the lifetime of the website, a small bug will get raised resulting in say a stylesheet change, and a change to default.aspx.cs for example.

On checking in these changes to TFS, and automated build would be triggered (great!), however for deploying the changes to the target production machine, I only need to deploy for example:

  • style.css
  • default.asx
  • MyWebApplications.dll

So my question is, can MSBuild be customized to generate a "code pack" of only the files which require deploying to the production server based on the changeset which cause the re-build?


You are probably going to have a hard time getting MSBuild itself to do this, but the ideal tool to use in your situation is the Web Deployment Tool, aka MSDeploy. With this tool you can tell it to deploy the changes to the target website. It will determine only the changed files and then just deploy those. Also you can perform customization to the deployment and a whole bunch of other stuff. It's a really great tool.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜