I use to write a bunch of lines of code to create folders and subfolders to copy along with BTDF Package. I was't sure how to copy all files and fodler in single line of code and could't find any clue when I googled.
If I have a Directory stucture like
Folder1 -> SubFolder1 -> SubSubFolder1->*.* and so on it was quite hard to keep adding
< copy > nodes under Target Name="CustomRedist" node for each Folder and subfolders.
Recently I found a better way of copying all folder , subfolder and all files using "RecursiveDir" option using BTDF. Hope this would help you to minimize the code.
Code:
Result :
It copied below list of folders and files at package Installed folder.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimmDGml9YoehjIZ8bbycfeK_cPOp7NgDVIL_gjcy_ItEgS_1SvjwjvSQ7muOQNWupoMbnlqzwQKt3ZveZtqON51U03d_UAuznTJBq5P_cvn5xB_pUH_OMT1emok87GvS2YWaYXj4OOQn0/s1600/Folder+structure.PNG)
Drop a comment if this article helps you to solve your problemYou can reach me @ raj.webjunky@yahoo.com
If I have a Directory stucture like
Folder1 -> SubFolder1 -> SubSubFolder1->*.* and so on it was quite hard to keep adding
< copy > nodes under Target Name="CustomRedist" node for each Folder and subfolders.
Recently I found a better way of copying all folder , subfolder and all files using "RecursiveDir" option using BTDF. Hope this would help you to minimize the code.
Code:
Result :
It copied below list of folders and files at package Installed folder.
Drop a comment if this article helps you to solve your problemYou can reach me @ raj.webjunky@yahoo.com
No comments:
Post a Comment