I'm new to Team Foundation Build. I've set the post-build events of all my C# projects in Visual Studio to copy the binaries to a physical directory. The command line in each project is:
xcopy "$(TargetDir)*.*" "$(SolutionDir)..\TempOutput\" /Y
The post-build events are fired and the files are copied when I build the solution in Visual Studio. But when building using TFS Build Definition, the events are not fired. Is there anything I need to set separately in my Build Definition to trigger all the projects' post-build events?
I have this in my TFSBuild.proj but still does not work:
<PropertyGroup>
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
</PropertyGroup>