Visual Studio 的Build Event 使用

rmdir Configuration
mkdir Configuration

Copy "$(ProjectDir)Configuration\Spec.config" "$(TargetDir)Configuration\Spec.config" /y



http://stackoverflow.com/questions/150053/how-to-run-visual-studio-post-build-events-for-debug-build-only



http://stackoverflow.com/questions/768282/how-to-delete-files-in-visual-studio-pre-build-event-command-line


UpdateObjectClient:

Copy "$(TargetDir)norlib.basic.dll"  "$(ProjectDir)Resources\"  /y
Copy "$(TargetDir)UpdateObjectClientApi.dll" "$(ProjectDir)Resources\"  /y
Copy "$(TargetDir)UpdateSoftwareProtocolLibrary.dll" "$(ProjectDir)Resources\"  /y



NDAPClient:


Copy "$(ProjectDir)3rdComponents\*.*"  "$(TargetDir)" /y
Copy  "$(TargetDir)UpdateObjectClient.exe" "$(TargetDir)\..\" /y
Del "$(TargetDir)UpdateObjectClient.exe"
if $(ConfigurationName) == Release  goto :release
goto :exit
:release
del "$(TargetDir)*.pdb"
%CreateSoftConfigFileCommand%    Download.XML    NDAPClient    R_1_3_308_2717     E:\Projects\NDAP\NDAPClient\Output\Release.x86     L:      Client/NDAPClientWPF.exe




:exit

posted on 2013-08-30 09:19  norsd  阅读(421)  评论(0编辑  收藏  举报

导航