Hi,

 

I need to copy a compiled solution (containing multiple projects) to a different location. All the files/projects in the solution exist under a root directory. While copying, I need to copy everything as it is (directory structure of source directory) except that I want to get rid of “release” folder (bin\release) in the destination location. The assemblies are created under “release” folder in “Release” configuration (and I am not allowed to change it) but I want to store the assemblies directly under project folder for this new location.

 

I have been thinking of some solution to achieve the same. One option comes to my mind is using a foreach loop and removing “release” from the destination path in the copy task. I still see some challenges and think it would be too slow for copying about 200-300 files. I am not sure if I can use copy command with a fileset in this case. I was thinking of running two copy tasks, one that will copy everything except files under release folder and second that will only copy the files under release folder. The problem with second copy command is that how will I specify a destination location for the file set removing the release folder from each file in the set and still having the rest of the folder structure same?

 

Please let me know if you have any idea to handle this problem more elegantly.

 

Thanks and Regards,

Sandeep

 

 

Reply via email to