将程序所依赖的动态库与其他依赖文件做了分类,使用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 /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%

相关文章:

  • 2022-01-25
  • 2022-12-23
  • 2022-01-10
  • 2022-12-23
  • 2021-08-02
  • 2022-12-23
  • 2022-12-23
  • 2018-09-12
猜你喜欢
  • 2021-11-01
  • 2022-03-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-01
相关资源
相似解决方案