Using MSBuild to deploy website files

by fred on November 30, 2006

in Code

After reading several blogs and searching the net for examples, I finally finished our team build script. Some things to note about the tasks inside the build engine.

The delete task will not delete directories. The exclude path must be absolute.

$(SolutionRoot)\Projects\MyProject\branch_name

MyProject.sln

$(ProjectLocalPath)\MyProject.Web \\Server\share_name\_DeployFiles\branch_name

In order for this to work, the domain user that the Team Foundation Service runs under must have permissions to write and delete files and folders on the web server’s unc share.

Also you will need the MSBuild Tasks (http://msbuildtasks.tigris.org) to use the tasks. The files and zip are written to a _DeployFiles folder so they can be inspected and then copied to the server. This way we could control how, when, and who deploys the files.

Related posts:

  1. The Secrets to Uploading Files with Ease In the golden, olden days of ASP, managing a file upload was pretty difficult. Most developers reverted to digging deep...
  2. How To Add A 5-Day Forecast To Your Website An article that demostrates the use of the National Weather Service’s Experimental National Digital Forecast Database XML Web Service ...
  3. Great info on CS I ran across a couple sites that have some great info on customizing Community Server. Dave Burke has several posts on...
  4. Getting Live Writer Installed At Work At work I’m behind a firewall and the WLInstaller.exe could not make a connection to the Live Update server, so...
  5. Your free search engine – Microsoft Indexing Server Many web applications provide a search capability, which allows users to search all the content of a web application. This...

Comments on this entry are closed.

Previous post:

Next post: