将程序所依赖的动态库与其他依赖文件做了分类,使用XCopy命令自动生成相应的目录结构。
set source="$(TargetDir)"set output="$(SolutionDir)station_release_files"set appname=$(TargetFileName)echo %output%if exist %output% (rd %output% /s /q) else (md %output%)echo f | xcopy %source%%appname%.config %output%\%appname%.config /yecho f | xcopy %source%%appname% %output%\%appname% /yecho f | xcopy %source%wasdkconfig.xml %output%\wasdkconfig.xml /yecho f | xcopy %source%NLog.config %output%\NLog.config /yecho d | xcopy %source%*.dll %output%\libs /yecho d | xcopy %source%*.mrt %output%\report /yecho d | xcopy $(SolutionDir)packages\SQLite.3.13.0\runtimes\win7-x64\native\sqlite3.dll %output%\libs /yecho 版本生成成功:%output%