vss , vb.net自动编译

前端之家收集整理的这篇文章主要介绍了vss , vb.net自动编译前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

@echo off
echo /////////////////////////////////////////////////
echo all start
echo /////////////////////////////////////////////////

rem ----------------------------
rem Local Folder Name
rem ----------------------------
@set local_filename=vss_Duplo
rem ----------------------------
rem Vss_username
rem ----------------------------
@set vss_username=fanh

rem ----------------------------
rem Vss_password
rem ----------------------------
@set vss_password=fanh
rem ----------------------------
rem Local Folder path
rem ----------------------------
@set local_filepath=D:/
rem ----------------------------
rem Application Name
rem ----------------------------
@set local_app_name=DUPLO.sln
rem ----------------------------
rem Vss_project_path
rem ----------------------------
@set vss_project_path=$/code/duplo
rem ----------------------------
rem Vss_dir
rem ----------------------------
@set vss_dir=//192.168.0.218/vss
rem ----------------------------
rem Vss_install_path
rem ----------------------------
@set vss_install_path=C:/Program Files/Microsoft Visual SourceSafe
rem ----------------------------
rem .net_install_path
rem ----------------------------
@set net_install_path=C:/Program Files/Microsoft Visual Studio 9.0/Common7/IDE;D:/duPLO_EXE;
rem ----------------------------
rem Local Folder Name
rem ----------------------------
@set local_logfile_name=build.log
rem ----------------------------
rem ----------------------------
rem vss_flag(1:on,0:off)
rem ----------------------------
@set vss_flag=1
rem ----------------------------
rem build_flag(1:on,0:off)
rem ----------------------------
@set build_flag=1

@if %vss_flag% EQU 1 goto do_vss
@if %build_flag% EQU 1 goto do_build
@goto end

@:do_vss
rem ----------------------------
rem do vss
rem ----------------------------

@if not exist %local_filename% (md %local_filepath%%local_filename%)

echo /////////////////////////////////////////////////
echo get files from vss
echo /////////////////////////////////////////////////
@set path=%path%;%vss_install_path%
@set ssdir=%vss_dir%
@set ssuser=%Vss_username%
@set sspwd=%Vss_password%
@ss workfold %vss_project_path% %local_filepath%%local_filename%
@ss get -GL%local_filepath%%local_filename% %vss_project_path% -R -W -I-

@if %build_flag% EQU 1 goto do_build@goto end@:do_buildrem ----------------------------rem do buildrem ----------------------------echo /////////////////////////////////////////////////echo build startingecho /////////////////////////////////////////////////@set path=%path%;%net_install_path%@if exist %local_filepath%%local_logfile_name% (del %local_filepath%%local_logfile_name%)@devenv /build release %local_filepath%%local_filename%/%local_app_name% >>%local_filepath%%local_logfile_name%@if errorlevel 1 goto error@goto success@:errorecho;echo /////////////////////////////////////////////////echo build failureecho /////////////////////////////////////////////////@goto end@:successecho;echo /////////////////////////////////////////////////echo build successecho /////////////////////////////////////////////////@:endpause

原文链接:https://www.f2er.com/vb/261813.html

猜你在找的VB相关文章