Devenv.Com is designed for use for batch automation; Devenv.Exe is how the 
interactive IDE is launched.

From MSDN:

The utility provides for the delivery of output through standard 
system streams, such as stdout and stderr, and determines the appropriate I/O 
redirection when it captures output, for example, to a .txt file.

I never tried to automate Visual Studio 2005, so it’s possible that using 
devenv.EXE worked just fine for that version; for later versions, it doesn’t.

One last thought: Deployment projects are deprecated in Visual Studio 2010 - 
and they’re not supported at all by Visual Studio 2012. I’d suggest that you 
add some tasks to your product backlog (or equivalent) to migrate away from 
.vdproj projects (I’d recommend moving to WiX); once that’s complete, you’ll be 
able to move the rest of your builds to MSBuild and leverage it’s speed and 



Sent from Windows Mail

From: Bhavani Kapparmath
Sent: ‎Saturday‎, ‎25‎ ‎May‎ ‎2013 ‎3‎:‎38‎ ‎a.m.
To: Bevan Arps;

Hi Bevan,
Looks like resolved thee issue.
Befor i posted this issue, i used this as a last try to resolv the 
Your reply on the same  confirmed it more n gave me more confidence on the fix.
What i m not sure is devenv failed always, but resolved. Any idea 

Thank yu so much

From: Bevan Arps []
Sent: Friday, May 24, 2013 3:52 PM
To: Bhavani Kapparmath;
Subject: RE: [NAnt-users] VS2010 devenv command from NAnt fails

As I recall (it's been a while), devenv.exe is what you run for an interactive 
session, for batch processing.

Some background. If you don't specify an extension, the shell looks for 
possible programs to run by trying various extensions. I #think# it uses this 
order: bat, cmd, exe, com. So specifying "devenv" works just like "devenv.exe".

Keep smiling

From: Bhavani Kapparmath
Sent: 5/24/2013 9:40 PM
Subject: RE: [NAnt-users] VS2010 devenv command from NAnt fails

Hi Bevan,

Thank you for the quick response.
I was using just devenv. Later changed to devenv.exe. Same failure results.
You want me to try

We are not using MSbuild, since we have one setup project(deployment project).

Kind regards,
Bhavani Kapparmath.
Tel # +91 080 6624 3452

The information contained in this email has been classified:
(  )  Larsen & Toubro Limited  -  General Business
(X) Larsen &Toubro  Limited  -   Internal Use
(  )  Larsen &Toubro  Limited  -  Confidential
(  )  Larsen & Toubro Limited  -  Proprietary

From: []
Sent: Friday, May 24, 2013 2:11 PM
To:; Bhavani Kapparmath
Subject: Re: [NAnt-users] VS2010 devenv command from NAnt fails

Two suggestions.

Firstly, are you executing or devenv.exe ? When I have needed to use 
the last resort of executing VS directly, using has been far more 
reliable than devenv.exe.

Secondly, have you considered using MSBuild? Unless you’re doing something not 
supported by MSBuild (like a .vdproj msi deployment project), MSBuild can be a 
more reliable choice.

Hope this helps,

Sent from Windows Mail

From: Bhavani Kapparmath
Sent: ‎Friday‎, ‎24‎ ‎May‎ ‎2013 ‎8‎:‎15‎ ‎p.m.

Hello All,

We are facing issue with building VS2010 from NAnt. Below are the details:

•         We migrated our project from Visual studio 2005 to Visual studio 2010.

•         Post migration, we are seeing build issue in the build server 
machine. Details are below.

•         Win 7 Professional SP1 versioned OS build machine is setup with 
Cruise control and NAnt script for automated builds with devenv.

•         Building with VS 2010 causes a number of projects to start but do not 

The only message appears in the log ( which is generated by /log switch of 
devenv command) is :

----Rebuild All started:Project:DWRAPPER, Configuration:BuildWithPortalSVC Win 

----Rebuild All started:Project:XYZ, Configuration:BuildWithPortalSVC Win 32---

•         Count of project failure like above is not the same for every build.

•         Building the project(solution file) in IDE is fine and also from the 
Command line with devenv.

•         Here is the command in Nant.

[The entire original message is not included.]
Larsen & Toubro Limited

This Email may contain confidential or privileged information for the intended 
recipient (s). If you are not the intended recipient, please do not use or 
disseminate the information, notify the sender and delete it from your system.
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt!
NAnt-users mailing list

Reply via email to