Prebuild Command line(Copy) . vc2008预生成事件和生成后事件的用法

xcopy $(SolutionDir)/PreBuild/Share   $(SolutionDir)/Debug/ /s /e /c /y
xcopy $(SolutionDir)/PreBuild/Debug   $(SolutionDir)/Debug/ /s /e /c /y


xcopy $(SolutionDir)/PreBuild/Release   $(SolutionDir)/Release/  /s /e /c /y
xcopy $(SolutionDir)/PreBuild/Share   $(SolutionDir)/Release/ /s /e /c /y

 

 

if $(ConfigurationName) == Debug goto :debug
 :release
  xcopy $(SolutionDir)/PreBuild/Share   $(SolutionDir)/Release/ /s /e /c /y
  xcopy $(SolutionDir)/PreBuild/Release   $(SolutionDir)/Release/ /s /e /c /y
goto :exit

:debug
xcopy $(SolutionDir)/PreBuild/Share   $(SolutionDir)/Debug/ /s /e /c /y
 xcopy $(SolutionDir)/PreBuild/Debug   $(SolutionDir)/Debug/ /s /e /c /y
:exit

你可能感兴趣的:(command)