Copying Visual Studio project file(s) to output directory during build

后端 未结 8 2010
梦毁少年i
梦毁少年i 2020-12-03 00:29

When I build a Visual Studio project, the executable is written to the output directory specified in the projects Property Page.

I have a project that has some extra

8条回答
  •  天涯浪人
    2020-12-03 01:12

    For VS 2017 the command Dmitry Pavlov posted would be the following:

    xcopy /y "$(ProjectDir)my_file.ini"  "$(OutDir)"
    

    Quotes are important in case there are spaces in the path to the project directory.

提交回复
热议问题