Copy to Output Directory copies folder structure but only want to copy files

后端 未结 8 1905
谎友^
谎友^ 2020-11-27 12:05

I have a VS2008 I want to copy certain files from a directory into my /bin/ folder. I have set the files (located in /common/browserhawk/) to \"Co

8条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-27 12:44

    You can add a Post Build Event to copy the files.
    Go to project properties, Build Events tab and add the following to the Post-build event command line:

    copy "$(ProjectDir)\common\browserhawk\*.*" "$(TargetDir)"
    

    Be sure to include the quotes if your project path has spaces in it.

提交回复
热议问题