I have some post-build events, which copy files from one project in my solution to another.
It works without any problem when I build the solution from Visual Studio.
It fails when I start the build on Team Foundation Server.
With the copy command I get the exit code 1, with the xcopy command I get exit code 4. I get no further details about what might be the issue.
Both projects are web projects.
If I delete the post-build events the build on TFS works fine.