Re: VS2010 devenv command from NAnt fails

Bevan Arps <[email protected]> Tue, 11 Jun 2013 18:41:56 +1200
Newsgroups gmane.comp.windows.dotnet.nant.user
Message-ID <[email protected]>
--===============8564970336442097818==
Content-type: multipart/alternative;
	boundary=_D1870CFE-14D6-0C24-7A31-56B9A140DD6D_

--_D1870CFE-14D6-0C24-7A31-56B9A140DD6D_
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"

Hi Bhavani

I suspect that you'll find those errors are the same as those you see durin=
g an interactive compile.

If you really want to suppress them (I'd put my effort into fixing the unde=
rlying code so it is warning free), redirect the command line output of dev=
env.com. The Nant exec task has an attribute for this.

Keep smiling
Bevan.

-----Original Message-----
From: Bhavani Kapparmath
Sent: 6/10/2013 7:54 PM
To: [email protected]; [email protected]
Subject: RE: [NAnt-users] VS2010 devenv command from NAnt fails

Hi Bevan,

After VS2010 build is successful using Nant, I could see whole lot of warni=
ng messages are being displayed/shown in the mail (which is not good) that =
is sent from CC.net after build ends.
This was not the case earlier with devenv.exe.
Any idea here? Any thread that has already discussed on this?

Kind regards,
K BBhavani.
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: [email protected] [mailto:[email protected]]
Sent: Saturday, May 25, 2013 5:54 AM
To: [email protected]; Bhavani Kapparmath
Subject: Re: [NAnt-users] VS2010 devenv command from NAnt fails

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

>From MSDN:
The devenv.com 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=E2=80=99s possible that=
 using devenv.EXE worked just fine for that version; for later versions, it=
 doesn=E2=80=99t.

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

Cheers,
Bevan.


Sent from Windows Mail

From: Bhavani Kapparmath
Sent: =E2=80=8ESaturday=E2=80=8E, =E2=80=8E25=E2=80=8E =E2=80=8EMay=E2=80=
=8E =E2=80=8E2013 =E2=80=8E3=E2=80=8E:=E2=80=8E38=E2=80=8E =E2=80=8Ea.m.
To: Bevan Arps; [email protected]

Hi Bevan,
Looks like devenv.com resolved thee issue.
Befor i posted this issue, i used this devenv.com as a last try to resolv t=
he issue.
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 devenv.com resolved. Any ide=
a here?

Thank yu so much

________________________________________
From: Bevan Arps [[email protected]]
Sent: Friday, May 24, 2013 3:52 PM
To: Bhavani Kapparmath; [email protected]
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 interact=
ive session, devenv.com for batch processing.

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

Keep smiling
Bevan


________________________________
From: Bhavani Kapparmath
Sent: 5/24/2013 9:40 PM
To: [email protected]; [email protected]
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 devenv.com?

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

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: [email protected]<mailto:[email protected]> [mailto:bevan=
[email protected]]<mailto:[mailto:[email protected]]>
Sent: Friday, May 24, 2013 2:11 PM
To: [email protected]<mailto:[email protected]=
t>; Bhavani Kapparmath
Subject: Re: [NAnt-users] VS2010 devenv command from NAnt fails

Two suggestions.

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

Secondly, have you considered using MSBuild? Unless you=E2=80=99re doing so=
mething not supported by MSBuild (like a .vdproj msi deployment project), M=
SBuild can be a more reliable choice.

Hope this helps,
Bevan.


Sent from Windows Mail

From: Bhavani Kapparmath
Sent: =E2=80=8EFriday=E2=80=8E, =E2=80=8E24=E2=80=8E =E2=80=8EMay=E2=80=8E =
=E2=80=8E2013 =E2=80=8E8=E2=80=8E:=E2=80=8E15=E2=80=8E =E2=80=8Ep.m.
To: [email protected]<mailto:[email protected]=
t>

Hello All,

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


=E2=80=A2         We migrated our project from Visual studio 2005 to Visual=
 studio 2010.

=E2=80=A2         Post migration, we are seeing build issue in the build se=
rver machine. Details are below.

=E2=80=A2         Win 7 Professional SP1 versioned OS build machine is setu=
p with Cruise control and NAnt script for automated builds with devenv.

=E2=80=A2         Building with VS 2010 causes a number of projects to star=
t but do not finish.

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 32-

----Rebuild All started:Project:XYZ, Configuration:BuildWithPortalSVC Win 3=
2---

=E2=80=A2         Count of project failure like above is not the same for e=
very build.

=E2=80=A2         Building the project(solution file) in IDE is fine and al=
so from the Command line with devenv.

=E2=80=A2         Here is the command in Nant.

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

www.larsentoubro.com<http://www.larsentoubro.com>

This Email may contain confidential or privileged information for the inten=
ded 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.

Larsen & Toubro Limited

www.larsentoubro.com

This Email may contain confidential or privileged information for the inten=
ded 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.


[The entire original message is not included.]=

--_D1870CFE-14D6-0C24-7A31-56B9A140DD6D_
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset="utf-8"

<html><head>=0A=
<meta content=3D"text/html; charset=3Dutf-8" http-equiv=3D"Content-Type">=
=0A=
<style>=0A=
<!--=0A=
@font-face=0A=
	{font-family:Calibri}=0A=
@font-face=0A=
	{font-family:Tahoma}=0A=
p.MsoNormal, li.MsoNormal, div.MsoNormal=0A=
	{margin:0in;=0A=
	margin-bottom:.0001pt;=0A=
	font-size:12.0pt;=0A=
	font-family:"Times New Roman","serif"}=0A=
a:link, span.MsoHyperlink=0A=
	{color:blue;=0A=
	text-decoration:underline}=0A=
a:visited, span.MsoHyperlinkFollowed=0A=
	{color:purple;=0A=
	text-decoration:underline}=0A=
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate=0A=
	{margin:0in;=0A=
	margin-bottom:.0001pt;=0A=
	font-size:8.0pt;=0A=
	font-family:"Tahoma","sans-serif"}=0A=
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph=0A=
	{margin-top:0in;=0A=
	margin-right:0in;=0A=
	margin-bottom:0in;=0A=
	margin-left:.5in;=0A=
	margin-bottom:.0001pt;=0A=
	font-size:12.0pt;=0A=
	font-family:"Times New Roman","serif"}=0A=
p.msolistparagraphcxspfirst, li.msolistparagraphcxspfirst, div.msolistparag=
raphcxspfirst=0A=
	{margin-top:0in;=0A=
	margin-right:0in;=0A=
	margin-bottom:0in;=0A=
	margin-left:.5in;=0A=
	margin-bottom:.0001pt;=0A=
	line-height:115%;=0A=
	font-size:12.0pt;=0A=
	font-family:"Times New Roman","serif"}=0A=
p.msolistparagraphcxspmiddle, li.msolistparagraphcxspmiddle, div.msolistpar=
agraphcxspmiddle=0A=
	{margin-top:0in;=0A=
	margin-right:0in;=0A=
	margin-bottom:0in;=0A=
	margin-left:.5in;=0A=
	margin-bottom:.0001pt;=0A=
	line-height:115%;=0A=
	font-size:12.0pt;=0A=
	font-family:"Times New Roman","serif"}=0A=
p.msolistparagraphcxsplast, li.msolistparagraphcxsplast, div.msolistparagra=
phcxsplast=0A=
	{margin-top:0in;=0A=
	margin-right:0in;=0A=
	margin-bottom:0in;=0A=
	margin-left:.5in;=0A=
	margin-bottom:.0001pt;=0A=
	line-height:115%;=0A=
	font-size:12.0pt;=0A=
	font-family:"Times New Roman","serif"}=0A=
span.code=0A=
	{}=0A=
span.BalloonTextChar=0A=
	{font-family:"Tahoma","sans-serif"}=0A=
span.EmailStyle24=0A=
	{font-family:"Calibri","sans-serif";=0A=
	color:#1F497D}=0A=
.MsoChpDefault=0A=
	{font-size:10.0pt}=0A=
@page WordSection1=0A=
	{margin:1.0in 1.0in 1.0in 1.0in}=0A=
div.WordSection1=0A=
	{}=0A=
-->=0A=
</style>=0A=
=0A=
</head><body lang=3D"EN-US" vLink=3D"purple" link=3D"blue"><div><div style=
=3D"font-family: Calibri,sans-serif; font-size: 11pt;">Hi Bhavani<br><br>I =
suspect that you'll find those errors are the same as those you see during =
an interactive compile.<br><br>If you really want to suppress them (I'd put=
 my effort into fixing the underlying code so it is warning free), redirect=
 the command line output of devenv.com. The Nant exec task has an attribute=
 for this.<br><br>Keep smiling<br>Bevan.<br></div></div><hr><span style=3D"=
font-family: Tahoma,sans-serif; font-size: 10pt; font-weight: bold;">From: =
</span><span style=3D"font-family: Tahoma,sans-serif; font-size: 10pt;">Bha=
vani Kapparmath</span><br><span style=3D"font-family: Tahoma,sans-serif; fo=
nt-size: 10pt; font-weight: bold;">Sent: </span><span style=3D"font-family:=
 Tahoma,sans-serif; font-size: 10pt;">6/10/2013 7:54 PM</span><br><span sty=
le=3D"font-family: Tahoma,sans-serif; font-size: 10pt; font-weight: bold;">=
To: </span><span style=3D"font-family: Tahoma,sans-serif; font-size: 10pt;"=
>[email protected]; [email protected]</span><br><span =
style=3D"font-family: Tahoma,sans-serif; font-size: 10pt; font-weight: bold=
;">Subject: </span><span style=3D"font-family: Tahoma,sans-serif; font-size=
: 10pt;">RE: [NAnt-users] VS2010 devenv command from NAnt fails</span><br><=
br>=0A=
<div class=3D"WordSection1">=0A=
<p class=3D"MsoNormal"><span style=3D'color: rgb(31, 73, 125); font-family:=
 "Calibri","sans-serif"; font-size: 11pt;'>Hi Bevan,</span></p>=0A=
<p class=3D"MsoNormal"><span style=3D'color: rgb(31, 73, 125); font-family:=
 "Calibri","sans-serif"; font-size: 11pt;'>&nbsp;</span></p>=0A=
<p class=3D"MsoNormal"><span style=3D'color: rgb(31, 73, 125); font-family:=
 "Calibri","sans-serif"; font-size: 11pt;'>After VS2010 build is successful=
 using Nant, I could see whole lot of warning messages are being displayed/=
shown in the mail (which is not good) that is sent=0A=
 from CC.net after build ends.</span></p>=0A=
<p class=3D"MsoNormal"><span style=3D'color: rgb(31, 73, 125); font-family:=
 "Calibri","sans-serif"; font-size: 11pt;'>This was not the case earlier wi=
th devenv.exe.</span></p>=0A=
<p class=3D"MsoNormal"><span style=3D'color: rgb(31, 73, 125); font-family:=
 "Calibri","sans-serif"; font-size: 11pt;'>Any idea here? Any thread that h=
as already discussed on this?</span></p>=0A=
<p class=3D"MsoNormal"><span style=3D'color: rgb(31, 73, 125); font-family:=
 "Calibri","sans-serif"; font-size: 11pt;'>&nbsp;</span></p>=0A=
<div>=0A=
<p class=3D"MsoNormal"><i><u><span style=3D'color: rgb(31, 73, 125); font-f=
amily: "Calibri","sans-serif"; font-size: 11pt;'>Kind regards,</span></u></=
i><span style=3D'color: rgb(31, 73, 125); font-family: "Calibri","sans-seri=
f"; font-size: 11pt;'></span></p>=0A=
<p class=3D"MsoNormal"><i><span style=3D'color: rgb(31, 73, 125); font-fami=
ly: "Calibri","sans-serif"; font-size: 11pt;'>K BBhavani.</span></i><span s=
tyle=3D'color: rgb(31, 73, 125); font-family: "Calibri","sans-serif"; font-=
size: 11pt;'></span></p>=0A=
<p class=3D"MsoNormal"><i><span style=3D'color: rgb(31, 73, 125); font-fami=
ly: "Calibri","sans-serif"; font-size: 11pt;'>Tel # +91 080 6624 3452</span=
></i><span style=3D'color: rgb(31, 73, 125); font-family: "Calibri","sans-s=
erif"; font-size: 11pt;'></span></p>=0A=
<p class=3D"MsoNormal"><span style=3D'color: rgb(31, 73, 125); font-family:=
 "Calibri","sans-serif"; font-size: 11pt;'>&nbsp;</span><span style=3D'colo=
r: rgb(31, 73, 125); font-family: "Calibri","sans-serif"; font-size: 11pt;'=
></span></p>=0A=
<p class=3D"MsoNormal"><span style=3D'color: rgb(31, 73, 125); font-family:=
 "Calibri","sans-serif"; font-size: 11pt;'>The information contained in thi=
s email has been classified:=0A=
</span><span style=3D'color: rgb(31, 73, 125); font-family: "Calibri","sans=
-serif"; font-size: 11pt;'></span></p>=0A=
<p class=3D"MsoNormal"><span style=3D'color: rgb(31, 73, 125); font-family:=
 "Calibri","sans-serif"; font-size: 11pt;'>(&nbsp; )&nbsp; Larsen &amp; Tou=
bro Limited&nbsp; -&nbsp; General Business=0A=
</span><span style=3D'color: rgb(31, 73, 125); font-family: "Calibri","sans=
-serif"; font-size: 11pt;'></span></p>=0A=
<p class=3D"MsoNormal"><span style=3D'color: rgb(31, 73, 125); font-family:=
 "Calibri","sans-serif"; font-size: 11pt;'>(X) Larsen &amp;Toubro&nbsp; Lim=
ited&nbsp; -&nbsp;&nbsp; Internal Use=0A=
</span><span style=3D'color: rgb(31, 73, 125); font-family: "Calibri","sans=
-serif"; font-size: 11pt;'></span></p>=0A=
<p class=3D"MsoNormal"><span style=3D'color: rgb(31, 73, 125); font-family:=
 "Calibri","sans-serif"; font-size: 11pt;'>(&nbsp; )&nbsp; Larsen &amp;Toub=
ro&nbsp; Limited&nbsp; -&nbsp; Confidential</span><span style=3D'color: rgb=
(31, 73, 125); font-family: "Calibri","sans-serif"; font-size: 11pt;'></spa=
n></p>=0A=
<p class=3D"MsoNormal"><span style=3D'color: rgb(31, 73, 125); font-family:=
 "Calibri","sans-serif"; font-size: 11pt;'>(&nbsp; )&nbsp; Larsen &amp; Tou=
bro Limited&nbsp; -&nbsp; Proprietary</span><span style=3D'color: rgb(31, 7=
3, 125); font-family: "Calibri","sans-serif"; font-size: 11pt;'></span></p>=
=0A=
</div>=0A=
<p class=3D"MsoNormal"><span style=3D'color: rgb(31, 73, 125); font-family:=
 "Calibri","sans-serif"; font-size: 11pt;'>&nbsp;</span></p>=0A=
<div>=0A=
<div style=3D"border-width: 1pt medium medium; border-style: solid none non=
e; border-color: rgb(181, 196, 223) currentColor currentColor; padding: 3pt=
 0in 0in;">=0A=
<p class=3D"MsoNormal"><b><span style=3D'font-family: "Tahoma","sans-serif"=
; font-size: 10pt;'>From:</span></b><span style=3D'font-family: "Tahoma","s=
ans-serif"; font-size: 10pt;'> [email protected] [mailto:bevan.arps@c=
lear.net.nz]=0A=
<br>=0A=
<b>Sent:</b> Saturday, May 25, 2013 5:54 AM<br>=0A=
<b>To:</b> [email protected]; Bhavani Kapparmath<br>=0A=
<b>Subject:</b> Re: [NAnt-users] VS2010 devenv command from NAnt fails</spa=
n></p>=0A=
</div>=0A=
</div>=0A=
<p class=3D"MsoNormal">&nbsp;</p>=0A=
<div>=0A=
<div>=0A=
<p class=3D"MsoNormal"><span style=3D'font-family: "Calibri","sans-serif";'=
>Devenv.Com is designed for use for batch automation; Devenv.Exe is how the=
 interactive IDE is launched.</span></p>=0A=
</div>=0A=
<div>=0A=
<p class=3D"MsoNormal"><span style=3D'font-family: "Calibri","sans-serif";'=
>&nbsp;</span></p>=0A=
</div>=0A=
<div>=0A=
<p class=3D"MsoNormal"><span style=3D'font-family: "Calibri","sans-serif";'=
>From MSDN:</span></p>=0A=
</div>=0A=
<blockquote style=3D"margin-right: 0in;">=0A=
<div>=0A=
<p class=3D"MsoNormal"><span style=3D'font-family: "Calibri","sans-serif";'=
>The devenv.com utility provides for the delivery of output through standar=
d system streams, such as=0A=
<span class=3D"code">stdout</span> and <span class=3D"code">stderr</span>, =
and determines the appropriate I/O redirection when it captures output, for=
 example, to a .txt file.</span></p>=0A=
</div>=0A=
</blockquote>=0A=
<div>=0A=
<p class=3D"MsoNormal"><span style=3D'font-family: "Calibri","sans-serif";'=
>&nbsp;</span></p>=0A=
</div>=0A=
<div>=0A=
<p class=3D"MsoNormal"><span style=3D'font-family: "Calibri","sans-serif";'=
>I never tried to automate Visual Studio 2005, so it=E2=80=99s possible tha=
t using devenv.EXE worked just fine for that version; for later versions, i=
t doesn=E2=80=99t.</span></p>=0A=
</div>=0A=
<div>=0A=
<p class=3D"MsoNormal"><span style=3D'font-family: "Calibri","sans-serif";'=
>&nbsp;</span></p>=0A=
</div>=0A=
<div>=0A=
<p class=3D"MsoNormal"><span style=3D'font-family: "Calibri","sans-serif";'=
>One last thought: Deployment projects are deprecated in Visual Studio 2010=
 - and they=E2=80=99re not supported at all by Visual Studio 2012. I=E2=80=
=99d suggest that you add some tasks to your product backlog=0A=
 (or equivalent) to migrate away from .vdproj projects (I=E2=80=99d recomme=
nd moving to WiX); once that=E2=80=99s complete</span></p></div></div></div=
><br><div>[The entire original message is not included.]</div></body></html=
>=

--_D1870CFE-14D6-0C24-7A31-56B9A140DD6D_--



--===============8564970336442097818==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
--===============8564970336442097818==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
NAnt-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nant-users

--===============8564970336442097818==--