Undeploy in TFS build failing build when not deployed

Topics: Visual Studio Integration
Nov 11, 2014 at 11:35 PM
I have been giving a new requirement for my TFS automated builds that use BTDF, they want me to undeploy all the application before I build, I have added a call to MSBuild that used /t:undeploy and that works, except when the application is not deployed it throws an error in the build and the build fails. is it possible to override the error being thrown and just stop the undeploy if it is not deployed?

Thanks,

Bill
Coordinator
Nov 12, 2014 at 3:49 AM
Hi Bill,

Let's attempt a very simple approach for v5.5... not sure if it will work:
<Target Name="AfterVerifyBizTalkAppExists" AfterTargets="VerifyBizTalkAppExists">
  <PropertyGroup>
    <AppExists>true</AppExists>
  </PropertyGroup>
</Target>

Thanks,
Tom
Nov 12, 2014 at 3:53 AM
Where would I need to put that? in the BTDF Proj file or in one of the targets?

Thanks,

Bill
Coordinator
Nov 12, 2014 at 3:55 AM
All .btdfproj files.