Hi,

 

I need to call devenv directly from within my nant script, but the call won’t work since there are spaces in the file path (it’s located in C:\Program Files\Microsoft Visual Studio 8\Common7\IDE). How do I specify for there to be double-quotes within the call? I used to just allow the call to find devenv from the environment path, but now we have VS 2003 and VS 2005 on our build box, so I need to distinguish between the two.

 

I need to do the following:

 

<exec program="cmd.exe" commandline="/c C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv ${source.code.folder}\mobilens.sln /rebuild Debug" />

 

I get an error because nant tries to execute something like “c:\program” which doesn’t work, of course. How do I get double-quotes into the path? I want it to do something like:

 

(command prompt example—this works from a command prompt, so nant needs to output the command with double-quotes around it)

C:\>”C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\devenv” e:\web\mobilens.sln /rebuild Debug

 

Thanks in advance!

Jay

 

.........................................................................................

Jay Williams
Software Engineer
M:Metrics, Inc.

t    +1 206 447 1860
f    +1 206 447 1855

www.mmetrics.com

:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

mobile market measurement
Because there’s more to the mobile market than just talk.
 

 

Reply via email to