如何利用命令行編譯VS工程

@echo off
set debugOrRelease=Release
set baseOutPath=%debugOrRelease%


rem 當前腳本所在路徑
set build_root = %~dp0
 
rem vcvarsall.bat所在的路徑:
set vcvars="%VS140COMNTOOLS%../../VC/vcvarsall.bat"
set devenv="%VS140COMNTOOLS%../IDE/devenv.exe"


rem 設置解決方案的路徑
set thesln=./Utilities.sln


echo 上位機程序開始編譯 
echo on 


echo 正在編譯,請稍後...
@echo on

@%devenv% %thesln% /rebuild %baseOutPath% /out build.log
@echo off
@endlocal

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章