- set _solution_file="%~dp0Emulator.sln"
- %_devenv% %_solution_file% /build "Release|Win32" /Out %_log%
实例验证:
C:\Users\xi\Desktop>"C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\devenv.com" "C:\Users\xi\source\repos\SMTPSys\SMTPSys.sln" /Project ExcuteCmd\ExcuteCmd.vcxproj /Rebuild Release /out ss.log
批量编译工程。