Copy all files and folders using msbuild

后端 未结 10 1837
感动是毒
感动是毒 2020-11-30 22:22

Just wondering if someone could help me with some msbuild scripts that I am trying to write. What I would like to do is copy all the files and sub folders from a folder to

10条回答
  •  再見小時候
    2020-11-30 22:54

    The best way to recursively copy files from one directory to another using MSBuild is using Copy task with SourceFiles and DestinationFiles as parameters. For example - To copy all files from build directory to back up directory will be

    
    Build
    Backup
    
    
    
    
    
    
    
    
    
    
    

    Now in above Copy command all source directories are traversed and files are copied to destination directory.

提交回复
热议问题