Msbuild Biztalk Stop Host Instances

<

Project xmlns="https://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets ="StopHosts">

<

Import Project="C:\sdc\Microsoft.Sdc.Common.Tasks" /> -- Download sdctasks from Codeplex.com and put it here

<

PropertyGroup >

<

MsgFailed>Failed Stop Hosts for </MsgFailed>

<

MsgSuccess>success Stop Hosts for </MsgSuccess>

<

BTServerName></BTServerName>

<

BTServerDatabase></BTServerDatabase>

< HostInst>Customercare</HostInst>

</

PropertyGroup>

<

Target Name="StopHosts" >

<Message Text ="Stopping BizTalk Host $(HostInst)"></Message>

<

BizTalk2004.Host.Stop DisplayName="$(HostInst)" Server="$(BTServerName)" Database="$(BTServerDatabase)" />

<OnError ExecuteTargets ="HandleErr"/>

</

Target>

<

Target Name="HandleErr" >

<

Warning Text ="$(MsgFailed) : $(HostInst)" ContinueOnError ="true" HelpKeyword ="HostsErr" ></Warning>

</

Target>

</

Project>