[Buildbot-devel] Windows specific tips for buildbot

Stephen Farrar stephen.farrar at cisra.canon.com.au
Wed Oct 18 22:50:34 UTC 2006


Hi Timothee,

Timothee Besset wrote:
> === How do you create build steps for Visual Studio?
> This should be a simple matter of calling devenv.exe with the
> appropriate parameters, so I'm doing something like that:
>
> s( step.ShellCommand, command=
> r'"C:\Program Files (x86)\Microsoft Visual Studio
> 8\Common7\IDE\devenv.exe" /build "Debug|Win32" /out build.log' )
>
> which doesn't quite work:
>
> '\"C:\Program Files (x86)\Microsoft Visual Studio 8\Common7\IDE\devenv.exe\"' is not recognized as an internal or external command,
> operable program or batch file.
>
> What's the proper way of escaping the path?
>   

Here's what we use:

devenv = r'"C:\Program Files\Microsoft Visual Studio .NET 
2003\Common7\IDE\devenv.com"'

s( step.ShellCommand, command=[devenv, r"path\to\project.sln", "/build", 
"debug"], ...)

In Visual studio 7.1 it was quite important to use devenv.com rather 
than devenv.exe.  Not sure if the same is true in version 8.

Hope this helps,

Stephen




More information about the devel mailing list