Msbuild Deploy Biztalk Solution Projects

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

<PropertyGroup >

<MsgBuildFailed>Failed deploy for </MsgBuildFailed>

<MsgBuildSuccess>success deploy for </MsgBuildSuccess>

</PropertyGroup>

<Target Name="BuildSolutions">

<WriteLinesToFile File="$(HighLevelErrFile)" Lines="Compiling Biztalk Projects..." Overwrite="false"/>

<Message Importance ="normal" Text ="start deploy"></Message>

<Exec Command='devenv.com /deploy Release "c:\abc.sln"'

Outputs='c:\abc.sln' >

<

Output TaskParameter="Outputs" PropertyName="BuildDone" />

</

Exec >

<

OnError ExecuteTargets ="HandleErr" />

</

Target>

<

Target Name="SuccessLog">

<

Message Importance ="high" Text ="$(MsgBuildSuccess) : $(BuildDone)" ContinueOnError ="true"></Message>

<

WriteLinesToFile File ="$(HighLevelErrFile)" Lines="$(MsgBuildSuccess) : $(BuildDone)" ContinueOnError="true"></WriteLinesToFile>

</

Target>

<

Target Name="HandleErr">

<

Message Importance ="high" Text ="$(MsgBuildFailed) : $(BuildDone)" ContinueOnError ="true"></Message>

<

WriteLinesToFile File ="$(HighLevelErrFile)" Lines="$(MsgBuildFailed) : $(BuildDone)" ContinueOnError="true"></WriteLinesToFile>

</

Target>

</

Project>