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

后端 未结 8 2006
梦毁少年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:10

    You need the extra $(OutDir). Otherwise, in the rebuild/clean step it will throw away your source.

    CommandLine : copy "$(SolutionDir)last-script.js" "$(TargetDir)Debug"
    
    Outputs  : $(TargetDir)Debug\last-script.js
    

提交回复
热议问题