MSbuild Copy whole folder

前端 未结 7 773
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-03 17:43

trying to copy a whole folder, but when i do this:


7条回答
  •  花落未央
    2021-02-03 18:29

    If you put the folder in the root of your c# project then you can simple put this in your csproj.

    
        
          PreserveNewest
        
    
    

    I have only tested in the 2017 version of csproj, but I assume it's backwards compatible. Could be wrong on that though

提交回复
热议问题