VC 使用命令行编译

VC 使用命令行编译,创建批处理命令如下:

@echo off

taskkill /f /im MyAssistant.exe
set path=D:/Program Files/Microsoft Visual Studio 9.0/Common7/IDE;%Systemroot%;%systemroot%/system32;
set name=MyAssistant
set outname=MyAssistant.exe

devenv /Rebuild Release "MyAssistant.sln"  /project "MyAssistant.vcproj" /projectconfig Release
pause

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注