user285372
user285372

Reputation:

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

Upvotes: 2

Views: 1452

Answers (3)

jonnystoten
jonnystoten

Reputation: 7133

mbuild is the matlab compiler...

msbuild is the Visual Studio build tool.

Upvotes: 1

A Bunch
A Bunch

Reputation: 373

I think you're looking for msbuild.exe not mbuild.exe.

Upvotes: 1

marklam
marklam

Reputation: 5358

You should be starting msbuild, not mbuild.

Upvotes: 0

Related Questions