記錄一下VS MSBuild自動編譯指令碼編寫例項
阿新 • • 發佈:2019-02-04
Visual Studio的IDE太佔資源,可以改為命令列編譯、還能實現自動化:
下面是kaldi-windows下的編譯指令碼:
@echo off call "E:\Visual Studio 2015 Enterprise\Common7\Tools\VsDevCmd.bat" echo "building openfstwin-1.3.4...." MSBuild tools/openfstwin-1.3.4/MSVC14/openfstwin.sln /t:Rebuild /p:Platform=x64 /p:Configuration=Release pause echo "building kaldi...." rem MSBuild /help pause MSBuild kaldiwin_vs2015_OPENBLAS/kaldiwin_vs2015.sln /t:Rebuild /p:Platform=x64 /p:Configuration=Release rem MSBuild MyApp.csproj /t:Clean /m 4 rem /p:Configuration=Debug;/p:Platform=x86;TargetFrameworkVersion=v3.5 pause
關於MSBuild更多引數: