Share via


Msbuild Biztalk Start Host Instances

<

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

<Import Project="c:\sdc\Microsoft.Sdc.Common.Tasks" />

<

PropertyGroup >

<

MsgFailed>Failed StartHosts for </MsgFailed>

<

MsgSuccess>success StartHosts for </MsgSuccess>

<

BTServerName></BTServerName>

<

BTServerDatabase></BTServerDatabase>

<HostInst>Your Host Instance Name</HostInst>

</PropertyGroup>

 

<Target Name ="StartHosts" >

<WriteLinesToFile File="$(HighLevelErrFile)" Lines="Starting BizTalk Host ..." Overwrite="false"/>

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

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

<

OnError ExecuteTargets ="HandleErr"/>

</

Target>

<

Target Name="HandleErr" >

<

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

</Target>

</

Project>

Comments