This page last changed on Mar 16, 2005 by mroberts.

Most complex build processes use NAnt or MSBuild to script out the build process. However, for simple projects that just need to compile a Visual Studio.NET solution, the DevenvBuilder provides an easy way to compile your project.

Examples

Minimalist example:

<devenv>
    <solutionfile>src\MyProject.sln</solutionfile>
    <configuration>Debug</configuration>
</devenv>

Full example:

<devenv>
    <solutionfile>src\MyProject.sln</solutionfile>
    <configuration>Debug</configuration>
    <executable>c:\program files\Microsoft Visual Studio .NET\Common7\IDE\devenv.com</executable>
    <buildTimeoutSeconds>10</buildTimeoutSeconds>
</devenv>

Configuration Elements:

Node Description Type Required Default
solutionfile Path of the solution file to build. If relative, is relative to the Project Working Directory string true n/a
configuration Solution configuration to use with the build (Not case sensitive) string true n/a
executable Path to "devenv.com" string false CC.NET will try to load this path from the registry. If both VS.NET 2003 and VS.NET 2002 are installed, CC.NET will try using VS.NET 2003. In this case, if you need to use VS.NET 2002, you should specify this property to point to the location of "devenv.com" for VS.NET 2002.
buildTimeoutSeconds Number of seconds to wait before assuming that the process has hung and should be killed. int false 600 (10 minutes)

Note: this task does require you to have Visual Studio .NET installed on your integration server.
Document generated by Confluence on Jun 26, 2005 17:23