This project is read-only.

TFS 2010 Build MsBuildArguments stop and Start iis using Msbuild extension pack

Aug 20, 2012 at 12:19 AM

I am trying to use TFS 2010 Builds. In the MSBuild Arguments, I have the parameters specified for deployment and it deploys fine. I am not sure if I can use MSBuild extension pack here but I need to stop the iis of the server, deploy, and then restart the iis. In all the examples, I see to modify the xml but I need to specify this in TFS Builds. I would appreciate if someone can help me.

Aug 22, 2012 at 3:34 PM

Are you using the Default.xaml template? You can still use MSBuild in that, otherwise you could use an Activity (there are a bunch here:

if you are using the upgradetemplate, you can just edit the tfsbuild.proj file and add in the relevant tasks.


Aug 24, 2012 at 1:51 PM

Hi Mike,

Thanks for your response. I am using DefaultTemplate.xaml. How I can use MSBuild in that to stop the iis, execute MsBuild Arguments(to deploy to the server which is working fine) and then restart the iis.