MSBuild file for deployment process

Posted by Lee Englestone on Stack Overflow See other posts from Stack Overflow or by Lee Englestone
Published on 2009-09-08T13:07:33Z Indexed on 2010/05/05 4:48 UTC
Read the original article Hit count: 296

I could do with some pointers, code examples or references that may help me do the following in an msbuild file to help speed up the deployment process..

This scenario involves getting a developers 'local' version onto a 'development' server..

  1. Increment a developers local Web Applications Assembly version number
  2. Publish a developers local Web Application files somewhere
  3. .rar the publsihed files or folder into the format v[IncrementedAssemblyNumber].rar
  4. Copy the .rar to somewhere
  5. Backup (.rar) the existing live website folder (located elsewhere) in the format Pre_v[IncrementedAssemblyNumber].rar
  6. Move the backed up .rar to a /Backup folder.
  7. Overwrite the development web files with the published local web files

Should be simple for all those MSBUILD Gurus out there.

Like I said, answers or 'Good and applicable' links would be much appreciated.

Also i'm thinking of getting one of the MSbuild books. From what I can tell there are 2, possibly 3 contenders. I am not using TFS. Can anyone recommend a book for beginning MSBUILD? Ideally from people that have read more than one book on the subject.

Cheers,

-- Lee

© Stack Overflow or respective owner

Related posts about msbuild

Related posts about deploy