Msbuild Biztalk Start Biztalk Applications

<

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

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

<

PropertyGroup >

<

MsgFailed>Failed StartApp for </MsgFailed>

<

MsgSuccess>success StartApp for </MsgSuccess>

<

BTServerName></BTServerName>

<

BTServerDatabase></BTServerDatabase>

<AppName>xyz</AppName>

</

PropertyGroup>

<

Target Name="StartBizTalkApplication" >

<

BizTalk2006.Application.Start Application="$(AppName)" Server="$(BTServerName)" Database="$(BTServerDatabase)" />

<OnError ExecuteTargets ="HandleErr"/>

</Target>

<

Target Name="HandleErr" >

<

Message Importance ="high" Text ="$(MsgFailed) : $(AppName)" ContinueOnError ="true" ></Message>

</Target>

</

Project>

Comments