Copy all files and folders using msbuild

后端 未结 10 1833
感动是毒
感动是毒 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:51

    Did you try to specify concrete destination directory instead of

    DestinationFolder="@(Viewer->'$(OutputPath)\\Tools')" ? 
    

    I'm not very proficient with advanced MSBuild syntax, but

    @(Viewer->'$(OutputPath)\\Tools') 
    

    looks weird to me. Script looks good, so the problem might be in values of $(ApplicationDirectory) and $(OutputPath)

    EDIT:

    Here is a blog post that might be useful:

    How To: Recursively Copy Files Using the Task

提交回复
热议问题