workflow foundation - Copy build outputs from multiple projects to same folder -
i have visual studio 2013 solution custom project types provided plugin. these projects not support specifying build outputs folder or post build events. need copy build outputs outputs location of each project single bin folder such can uploaded drop location in tfs. how write batch script or similar copy outputs from
\solutiondir\project1\debug\win32\* \solutiondir\project2\debug\win32\* ... to
\solutiondir\bin\debug\win32\* bearing in mind projects depend on others , therefore same .dll may present in multiple locations. doesn't matter keep. tried like
for /f "tokens=*" %a in ('dir *.dll *.exe /b /s /a-d') copy "%a" "bin" /y but not preserve \debug\win32 folder structure
i managed work out of batch script called copybins.bat. not particularly elegant, here is;
dir /b /s /ad | find "\%1\" > folders.txt /f "tokens=*" %%a in ('cat folders.txt') xcopy /s /y "%%a" %1\ del folders.txt then can execute calling
copybins debug bear in mind can't execute
for /f "tokens=*" %a in ('dir /b /s /ad | find "\debug\"') xcopy /s /y "%a" debug\ because error
| unexpected @ time. if has better solution hear it...
Comments
Post a Comment