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 ......................................................................................... |
- [NAnt-users] Directory paths with spaces Jay Williams
- Re: [NAnt-users] Directory paths with spaces William_Martin
- RE: [NAnt-users] Directory paths with spaces Rod Ayers