Solved

CruiseControl.Net <devenv> task fails with Visual Studio 2010

Posted on 2011-03-15
1
1,610 Views
Last Modified: 2013-12-13
Hi experts,

I have cruise control up and running on a build server.  I am running the cruise control console application.  Here is what a sample block looks like from my config file within the <tasks /> section:

      <devenv>
        <description>NameOfProjectToBuild Task</description>
        <solutionfile>C:\Path\To\SolutionFile.sln</solutionfile>
        <configuration>Release</configuration>
        <buildtype>Rebuild</buildtype>
        <project>NameOfProjectToBuild</project>
        <executable>C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE</executable>
        <buildTimeoutSeconds>600</buildTimeoutSeconds>
        <version>VS2010</version>
      </devenv>

I recently had to update the scripts to VS2010 though as these projects require that IDE now.  All projects build just fine when opening up in VS2010 IDE.  They have all been converted successfully to the VS2010 project formats.  When I attempt to build my project using CCTray, this is the error that CruiseControl gives me when attempting to execute the above devenv task:

"Unable to launch the devenv process.  Please verify that you can invoke this command from the command line: C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE "C:\Path\To\SolutionFile.sln" /Rebuild "Release" /project "NameOfProjectToBuild" ---> System.IO.IOException: Unable to execute file [C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE].  The file may not exist or may not be executable. ---> System.ComponentModel.Win32Exception: Access is denied"

I have run the following commands in a regular command prompt successfully:
C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE>devenv "C:\Path\To\SolutionFile.sln" /Rebuild "Release" /project "NameOfProjectToBuild"
C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE>"C:\Path\To\SolutionFile.sln" /Rebuild "Release" /project "NameOfProjectToBuild"

And those commands successfully execute a build.

Am I missing something?  Some kind of permissions with the console application and not being able to execute the VS2010 devenv exe?  I am running the console app in the same user account that I am actually opening up the VS2010 IDE so I'm still confused.

Thanks for your help.
0
Comment
Question by:Gewgala
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 7

Accepted Solution

by:
Gewgala earned 0 total points
ID: 35141951
I am retarded.  I figured it out.  I was missing the trailing "devenv.exe" in the <executable></executable> tag.

It should have been this:  <executable>C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\devenv.exe</executable>
0

Featured Post

Get MongoDB database support online, now!

At Percona’s web store you can order your MongoDB database support needs in minutes. No hassles, no fuss, just pick and click. Pay online with a credit card. Handle your MongoDB database support now!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This post contains step-by-step instructions for setting up alerting in Percona Monitoring and Management (PMM) using Grafana.
Using Adobe Premiere Pro, the viewer will learn how to set up a sequence with proper settings, importing pictures, rendering, and exporting the finished product.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question