Msbuild Biztalk Import Bindings

<

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

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

<

PropertyGroup >

<

MsgFailed>Failed Binding for </MsgFailed>

<

MsgSuccess>success Binding for </MsgSuccess>

<

BTServerName></BTServerName>

<

BTServerDatabase></BTServerDatabase>

<AppName>Customer</AppName>

<BindingDir>x.xml</BindingDir>

</PropertyGroup>

<Target Name="AddReferences" >

<BizTalk2006.Application.AddReferences Application="$(AppName)" ReferenceApplications="$(RefApplication)" Server="$(BTServerName)" Database="$(BTServerDatabase)" />

</Target>

<Target Name="ImportBindings" >

<Exec Command='Btstask.exe ImportBindings -Source:"$(BindingDir)" -A:$(AppName) -Server:$(BTServerName) -Database:$(BTServerDatabase)' />

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

<WriteLinesToFile File="$(HighLevelErrFile)" Lines="$(MsgSuccess) $(AppName) $(BindingDir)" Overwrite="false"/>

<OnError ExecuteTargets ="HandleErr"/>

</Target>

<Target Name="HandleErr" >

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

</

Target>

</

Project>