將程序所依賴的動態庫與其餘依賴文件作了分類,使用XCopy命令自動生成相應的目錄結構。sql
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 /y echo f | xcopy %source%%appname% %output%\%appname% /y echo f | xcopy %source%wasdkconfig.xml %output%\wasdkconfig.xml /y echo f | xcopy %source%NLog.config %output%\NLog.config /y echo d | xcopy %source%*.dll %output%\libs /y echo d | xcopy %source%*.mrt %output%\report /y echo d | xcopy $(SolutionDir)packages\SQLite.3.13.0\runtimes\win7-x64\native\sqlite3.dll %output%\libs /y echo 版本生成成功:%output%