Batch file to launch VS2008 and compile a solution file
I have written the batch file below, in order to automate the process of launching Visual Studio 2008, and then building and compiling the solution file, so that instead of manually starting up VS2008 and then pressing F5, I can just run my solution file:
START CMD.EXE
cd C:\Program Files\MobileRobots\Aria\examples
mbuild myProg.sln
But it complains:
Select a compiler:
[1] Lcc C version 2.4.1 in C:\PROGRAM FILES\MATLAB\R2006A\sys\lcc
[开发者_开发技巧0] None
What does this have anything to do with Matlab?!
It suggested I run:
mbuild -setup
But I didn't, as I didn't know what it had to do with Matlab. What is going on? How can I declare my VS2008 compiler? Why is it not detected automatically?
Thanks
I think you're looking for msbuild.exe not mbuild.exe.
mbuild
is the matlab compiler...
msbuild
is the Visual Studio build tool.
You should be starting msbuild, not mbuild.
精彩评论