Msbuild Biztalk Add Resources, Add Application

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="AddBtResx;">

<PropertyGroup >

<BTServerName></BTServerName>

<BTServerDatabase></BTServerDatabase>

<MsgFailed>Failed Adding Resource for </MsgFailed>

<MsgSuccess>success Adding Resource for </MsgSuccess>

<ResxAppName>Finance</ResxAppName>

<Locn>"c:\Program Files\Microsoft\Bin\Microsoft.Talk.Adapter.Schemas.dll"</Locn>

</PropertyGroup>

<Target Name="AddBtResx" >

<Exec Command='btstask AddApp -A:$(ResxAppName) -Server:$(BTServerName) -Database:$(BTServerDatabase)'/>

<Exec Command='btstask AddResource -A:$(ResxAppName) -T:"System.BizTalk:BizTalkAssembly" -OverWrite -Server:$(BTServerName) -Database:$(BTServerDatabase) -Source:$(Locn)'/>

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

<OnError ExecuteTargets ="HandleErr"/>

</Target>

<Target Name="HandleErr" >

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

</Target>

</Project>