记录一下VS MSBuild自动编译脚本编写实例

来源:互联网 发布:js a标签的href不跳转 编辑:程序博客网 时间:2024/06/08 05:44

Visual Studio的IDE太占资源,可以改为命令行编译、还能实现自动化:


下面是kaldi-windows下的编译脚本:

@echo offcall "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=Releasepauseecho "building kaldi...."rem MSBuild /helppauseMSBuild kaldiwin_vs2015_OPENBLAS/kaldiwin_vs2015.sln /t:Rebuild /p:Platform=x64 /p:Configuration=Releaserem MSBuild MyApp.csproj /t:Clean /m 4rem                      /p:Configuration=Debug;/p:Platform=x86;TargetFrameworkVersion=v3.5pause

关于MSBuild更多参数:

https://msdn.microsoft.com/zh-cn/library/bb629394.aspx


原创粉丝点击