Why doesn't MSBuild copy as I would expect

后端 未结 4 2330
忘掉有多难
忘掉有多难 2021-02-09 10:20

I\'m needing to script my build. I\'m using MSBUILD because of it\'s integration with VS.net. I am trying to copy some files from the build environment to the deployment folder

4条回答
  •  一个人的身影
    2021-02-09 10:45

    Very simple example that copies a directory contents and structure recursively:

    
    

    @(Compile) is an ItemGroup of all files that you want to copy. Could be something like:

       
           
       
    

    The Copy task will copy all the files into c:\foocopy just like xcopy.

提交回复
热议问题