Search code examples
tfsmsbuildmsbuild-task

Conditionally execute a task after building a solution with MSBuild + TFS


I'm using MSBuild with TFS and I have to build 4 solutions. When the compilation is done I should launch upon to 4 different Exec tasks depending on wherever the compilation was successful or not.

I know how to do that with MSBuild alone using targets with conditions using the var $(BuildBreak) because I can do build solution - check result - exec task - build ... but I don't know how to do that with the TFS extensions ... any help will be very appreciated.

Thanks mates.


Solution

  • I had to check the AfterCompileSolution target defined into the TFS Build extensions