I want to reuse auto deployment template used with TFS 2010 to 2013 but the problem is when TFS executes power shell scripts in parallel execution mode not in sequential so the compilation and packaging is done at the same time or in parallel process so packaging doesn't find the compiled folder because the compilation is not completed yet.Same script is working fine in TFS 2010.
Can anybody help me to do compilation, packaging and deployment steps in sequential manner.