Copying files into the application folder at compile time

前端 未结 8 1211
无人共我
无人共我 2020-12-02 08:25

If I have some files I want to copy from my project into the .\\bin\\debug\\ folder on compilation, then it seems I have to put them into the root of the projec

8条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-02 08:50

    copy from subfolder to subfolder

     if not exist "$(ProjectDir)$(OutDir)subfolder" mkdir "$(ProjectDir)$(OutDir)subfolder"
    
     copy "$(ProjectDir)subfolder\"  "$(ProjectDir)$(OutDir)subfolder\"
    

提交回复
热议问题