Pre Build Event: Copy Folder and it's SubFolders and files into Build Directory using XCopy

前端 未结 4 2000
死守一世寂寞
死守一世寂寞 2020-12-29 23:37

I have Window Application and I have some plugins & it\'s ChildPlugins which I placed in My Application folder structure(see folder structure image). I used SVN as sour

4条回答
  •  醉话见心
    2020-12-29 23:40

    I have used this:

    xcopy "$(ProjectDir)MyFolder\*.*" "$(SolutionDir)ConsoleApplication1\bin\Release\MyFolder" /Y /I /E
    

    And worked fine, the folder 'MyFolder' appear into my 'Release' folder when I compile the project with all the documents in it.

    Something to point out here is that the path that is after $(SolutionDir) would change depending of the name of your solution, my solution is ConsoleApplication1.

提交回复
热议问题