devenv命令行编译项目

批处理代码

cd /d  %~dp0
set logfile="E:\source\Release.log"
break>%logfile%

@echo Build Started: %date% %time% >>%logfile%

"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\devenv" "E:\source\TestSource.sln" /rebuild "Release|Any CPU" /out %logfile%
@echo Completed TestSource: %date% %time% >>%logfile%

@echo Build Completed: %date% %time% >>%logfile%

pause

 

你可能感兴趣的:(devenv命令行)