Tag Archives: tfs msbuild

Getting Team Build to trigger a new build when you update the MSBuild file

I’ve been working on getting some more builds added to our TFS server today and actually had a moment of inspiration! It doesn’t happen all that often so better blog it while it’s still fresh! 🙂

I have set-up several custom build steps that run after the normal build process has finished. These steps simply remove any files not needed for deployment and deploy to a server so it can be tested/QA. Previously if I updated the MSBuild file that handles the build and deployment (TFSBuild.proj) I had to manually trigger a build. Today I realised that if I add the folder containing the MSBuild file, TFS would automatically detect that it has changed and trigger a build!! I know it’s only a few clicks and will not save a lot of time, but everything counts!!