CruiseControl.Net <devenv> task fails with Visual Studio 2010
Posted on 2011-03-15
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:
<executable>C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE</executable>
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.