Re: VS2010 devenv command from NAnt fails
Bevan Arps <[email protected]> Fri, 24 May 2013 22:22:57 +1200
| Newsgroups | gmane.comp.windows.dotnet.nant.user |
|---|---|
| Message-ID | <[email protected]> |
--===============5166196636877497441== Content-type: multipart/alternative; boundary=_1D626BB0-917A-0CE0-2DA8-0C5E029608CC_ --_1D626BB0-917A-0CE0-2DA8-0C5E029608CC_ Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 -----Original Message----- 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]] Sent: Friday, May 24, 2013 2:11 PM To: [email protected]; 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] 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. <exec program=3D"C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE= \devenv" verbose =3D "true"> <arg line=3D"${SolutionFile} /rebuild BuildTwinWithPortalSvc= /out ${BuildLog}"/> </exec> We are stuck here now. there is no other error message that helps to find o= ut what is happening during build of VS 2010 with NAnt. Why is the build fa= iling with the above error message? I am using NAnt 0.92. Also tried with nant-0.91-alpha2. Same results. Seems in Win XP machine the issue is not seen. Should I attached log file in the mail? Please let me know. 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 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.]= --_1D626BB0-917A-0CE0-2DA8-0C5E029608CC_ 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= @font-face=0A= {font-family:Verdana}=0A= p.MsoNormal, li.MsoNormal, div.MsoNormal=0A= {margin:0in;=0A= margin-bottom:.0001pt;=0A= font-size:11.0pt;=0A= font-family:"Calibri","sans-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=0A= {margin-top:0in;=0A= margin-right:0in;=0A= margin-bottom:12.0pt;=0A= margin-left:0in;=0A= font-size:12.0pt;=0A= font-family:"Times New Roman","serif"}=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= p.msochpdefault, li.msochpdefault, div.msochpdefault=0A= {margin-top:0in;=0A= margin-right:0in;=0A= margin-bottom:12.0pt;=0A= margin-left:0in;=0A= font-size:12.0pt;=0A= font-family:"Calibri","sans-serif"}=0A= span.emailstyle17=0A= {font-family:"Calibri","sans-serif";=0A= color:windowtext}=0A= span.BalloonTextChar=0A= {font-family:"Tahoma","sans-serif"}=0A= span.EmailStyle27=0A= {font-family:"Calibri","sans-serif";=0A= color:#1F497D}=0A= .MsoChpDefault=0A= {font-size:10.0pt;=0A= font-family:"Calibri","sans-serif"}=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;">As I recall (it's be= en a while), devenv.exe is what you run for an interactive session, devenv.= com for batch processing.<br><br>Some background. If you don't specify an e= xtension, the shell looks for possible programs to run by trying various ex= tensions. I #think# it uses this order: bat, cmd, exe, com. So specifying "= devenv" works just like "devenv.exe".<br><br>Keep smiling<br>Bevan<br><br><= 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;">Bhavani Kapparmath</span><br><span style=3D"= font-family: Tahoma,sans-serif; font-size: 10pt; font-weight: bold;">Sent: = </span><span style=3D"font-family: Tahoma,sans-serif; font-size: 10pt;">5/2= 4/2013 9:40 PM</span><br><span style=3D"font-family: Tahoma,sans-serif; fon= t-size: 10pt; font-weight: bold;">To: </span><span style=3D"font-family: Ta= homa,sans-serif; font-size: 10pt;">[email protected]; nant-users@list= s.sourceforge.net</span><br><span style=3D"font-family: Tahoma,sans-serif; = font-size: 10pt; font-weight: bold;">Subject: </span><span style=3D"font-fa= mily: Tahoma,sans-serif; font-size: 10pt;">RE: [NAnt-users] VS2010 devenv c= ommand from NAnt fails</span><br><br>=0A= <div class=3D"WordSection1">=0A= <p class=3D"MsoNormal"><span style=3D"color: rgb(31, 73, 125);">Hi Bevan,</= span></p>=0A= <p class=3D"MsoNormal"><span style=3D"color: rgb(31, 73, 125);"> </spa= n></p>=0A= <p class=3D"MsoNormal"><span style=3D"color: rgb(31, 73, 125);">Thank you f= or the quick response.</span></p>=0A= <p class=3D"MsoNormal"><span style=3D"color: rgb(31, 73, 125);">I was using= just devenv. Later changed to devenv.exe. Same failure results.</span></p>= =0A= <p class=3D"MsoNormal"><span style=3D"color: rgb(31, 73, 125);">You want me= to try devenv.com?</span></p>=0A= <p class=3D"MsoNormal"><span style=3D"color: rgb(31, 73, 125);"> </spa= n></p>=0A= <p class=3D"MsoNormal"><span style=3D"color: rgb(31, 73, 125);">We are not = using MSbuild, since we have one setup project(deployment project).</span><= /p>=0A= <p class=3D"MsoNormal"><span style=3D"color: rgb(31, 73, 125);"> </spa= n></p>=0A= <div>=0A= <p class=3D"MsoNormal"><i><u><span style=3D"color: rgb(31, 73, 125);">Kind = regards,</span></u></i><span style=3D"color: rgb(31, 73, 125);"></span></p>= =0A= <p class=3D"MsoNormal"><i><span style=3D"color: rgb(31, 73, 125);">Bhavani = Kapparmath.</span></i><span style=3D"color: rgb(31, 73, 125);"></span></p>= =0A= <p class=3D"MsoNormal"><i><span style=3D"color: rgb(31, 73, 125);">Tel # +9= 1 080 6624 3452</span></i><span style=3D"color: rgb(31, 73, 125);"></span><= /p>=0A= <p class=3D"MsoNormal"><span style=3D"color: rgb(31, 73, 125);"> </spa= n><span style=3D"color: rgb(31, 73, 125);"></span></p>=0A= <p class=3D"MsoNormal"><span style=3D"color: rgb(31, 73, 125);">The informa= tion contained in this email has been classified:=0A= </span><span style=3D"color: rgb(31, 73, 125);"></span></p>=0A= <p class=3D"MsoNormal"><span style=3D"color: rgb(31, 73, 125);">( )&n= bsp; Larsen & Toubro Limited - General Business=0A= </span><span style=3D"color: rgb(31, 73, 125);"></span></p>=0A= <p class=3D"MsoNormal"><span style=3D"color: rgb(31, 73, 125);">(X) Larsen = &Toubro Limited - Internal Use=0A= </span><span style=3D"color: rgb(31, 73, 125);"></span></p>=0A= <p class=3D"MsoNormal"><span style=3D"color: rgb(31, 73, 125);">( )&n= bsp; Larsen &Toubro Limited - Confidential</span><spa= n style=3D"color: rgb(31, 73, 125);"></span></p>=0A= <p class=3D"MsoNormal"><span style=3D"color: rgb(31, 73, 125);">( )&n= bsp; Larsen & Toubro Limited - Proprietary</span><span styl= e=3D"color: rgb(31, 73, 125);"></span></p>=0A= </div>=0A= <p class=3D"MsoNormal"><span style=3D"color: rgb(31, 73, 125);"> </spa= n></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> Friday, May 24, 2013 2:11 PM<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"> </p>=0A= <div>=0A= <div>=0A= <p class=3D"MsoNormal"><span style=3D"font-size: 12pt;">Two suggestions.</s= pan></p>=0A= </div>=0A= <div>=0A= <p class=3D"MsoNormal"><span style=3D"font-size: 12pt;"> </span></p>= =0A= </div>=0A= <div>=0A= <p class=3D"MsoNormal"><span style=3D"font-size: 12pt;">Firstly, are you ex= ecuting devenv.com or devenv.exe ? When I have needed to use the last resor= t of executing VS directly, using devenv.com has been far more reliable tha= n devenv.exe.</span></p>=0A= </div>=0A= <div>=0A= <p class=3D"MsoNormal"><span style=3D"font-size: 12pt;"> </span></p>= =0A= </div>=0A= <div>=0A= <p class=3D"MsoNormal"><span style=3D"font-size: 12pt;">Secondly, have you = considered using MSBuild? Unless you=E2=80=99re doing something not support= ed by MSBuild (like a .vdproj msi deployment project), MSBuild can be a mor= e reliable choice.</span></p>=0A= </div>=0A= <div>=0A= <p class=3D"MsoNormal"><span style=3D"font-size: 12pt;"> </span></p>= =0A= </div>=0A= <div>=0A= <p class=3D"MsoNormal"><span style=3D"font-size: 12pt;">Hope this helps,</s= pan></p>=0A= </div>=0A= <div>=0A= <p class=3D"MsoNormal"><span style=3D"font-size: 12pt;">Bevan.</span></p>= =0A= </div>=0A= <div>=0A= <p class=3D"MsoNormal"><span style=3D"font-size: 12pt;"> </span></p>= =0A= </div>=0A= <div>=0A= <div>=0A= <p class=3D"MsoNormal"><span style=3D"font-size: 12pt;"> </span></p>= =0A= </div>=0A= <div>=0A= <p class=3D"MsoNormal"><span style=3D"font-size: 12pt;">Sent from Windows M= ail</span></p>=0A= </div>=0A= <div>=0A= <p class=3D"MsoNormal"><span style=3D"font-size: 12pt;"> </span></p>= =0A= </div>=0A= </div>=0A= <div style=3D"border-width: 1pt medium medium; border-style: solid none non= e; border-color: rgb(229, 229, 229) currentColor currentColor; padding: 4pt= 0in 0in;">=0A= <div>=0A= <p class=3D"MsoNormal"><b><span style=3D"letter-spacing: 0.25pt;">From:</sp= an></b><span style=3D"letter-spacing: 0.25pt;"> Bhavani Kapparmath<br>= =0A= <b>Sent:</b> =E2=80=8EFriday=E2=80=8E, =E2=80=8E24=E2=80=8E =E2=80=8EM= ay=E2=80=8E =E2=80=8E2013 =E2=80=8E8=E2=80=8E:=E2=80=8E15=E2=80=8E =E2=80= =8Ep.m.<br>=0A= <b>To:</b> [email protected]</span><span style=3D"font-= size: 12pt;"></span></p>=0A= </div>=0A= </div>=0A= <div>=0A= <p class=3D"MsoNormal"><span style=3D"font-size: 12pt;"> </span></p>= =0A= </div>=0A= <div>=0A= <p class=3D"MsoNormal">Hello All,</p>=0A= <p class=3D"MsoNormal"> </p>=0A= <p class=3D"MsoNormal">We are facing issue with building VS2010 from NAnt. = Below are the details:</p>=0A= <p class=3D"MsoNormal"> </p>=0A= <p style=3D"text-indent: -0.25in; margin-left: 1in;"><span style=3D"font-fa= mily: Symbol; font-size: 9pt;">=C2=B7</span><span style=3D"font-size: 7pt;"= > =0A= </span><span style=3D'font-family: "Verdana","sans-serif"; font-size: 9pt;'= >We migrated our project from Visual studio 2005 to Visual studio 2010.</sp= an></p>=0A= <p style=3D"text-indent: -0.25in; margin-left: 1in;"><span style=3D"font-fa= mily: Symbol; font-size: 9pt;">=C2=B7</span><span style=3D"font-size: 7pt;"= > =0A= </span><span style=3D'font-family: "Verdana","sans-serif"; font-size: 9pt;'= >Post migration, we are seeing build issue in the build server machine. Det= ails are below.</span></p>=0A= <p style=3D"text-indent: -0.25in; margin-left: 1in;"><span style=3D"font-fa= mily: Symbol; font-size: 9pt;">=C2=B7</span><span style=3D"font-size: 7pt;"= > =0A= </span><span style=3D'font-family: "Verdana","sans-serif"; font-size: 9pt;'= >Win 7 Professional SP1 versioned OS build machine is setup with Cruise con= trol and NAnt script for automated builds with devenv.</span></p>=0A= <p style=3D"text-indent: -0.25in; margin-left: 1in;"><span style=3D"font-fa= mily: Symbol; font-size: 9pt;">=C2=B7</span><span style=3D"font-size: 7pt;"= > =0A= </span><span style=3D'font-family: "Verdana","sans-serif"; font-size: 9pt;'= >Building with=0A= <strong><span style=3D'font-family: "Verdana","sans-serif";'>VS 2010 causes= a number of projects to start but do not finish</span></strong>.</span></p= >=0A= <p style=3D"text-indent: 0.5in; margin-left: 0.5in;"><span style=3D'font-fa= mily: "Verdana","sans-serif"; font-size: 9pt;'>The only message appears in = the log ( which is generated by /log switch of devenv command) is :</span><= /p>=0A= <p style=3D"text-indent: 0.5in; margin-left: 1in;"><strong><span style=3D'f= ont-family: "Verdana","sans-serif"; font-size: 9pt;'>----Rebuild All starte= d:Project:DWRAPPER, Configuration:BuildWithPortalSVC Win 32-</span></strong= ></p>=0A= <p style=3D"text-indent: 0.5in; margin-left: 1in;"><strong><span style=3D'f= ont-family: "Verdana","sans-serif"; font-size: 9pt;'>----Rebuild All starte= d:Project:XYZ, Configuration:BuildWithPortalSVC Win 32---</span></strong></= p>=0A= <p style=3D"text-indent: -0.25in; margin-left: 1in;"><span style=3D"font-fa= mily: Symbol; font-size: 9pt;">=C2=B7</span><span style=3D"font-size: 7pt;"= > =0A= </span><span style=3D'font-family: "Verdana","sans-serif"; font-size: 9pt;'= >Count of project failure like above is not the same for every build.</span= ></p>=0A= <p style=3D"text-indent: -0.25in; margin-left: 1in;"><span style=3D"font-fa= mily: Symbol; font-size: 9pt;">=C2=B7</span><span style=3D"font-size: 7pt;"= > =0A= </span><span style=3D'font-family: "Verdana","sans-serif"; font-size: 9pt;'= >Building the project(solution file) in IDE is fine and also from the = Command line with devenv.</span></p>=0A= <p style=3D"text-indent: -0.25in; margin-left: 1in;"><span style=3D"font-fa= mily: Symbol; font-size: 9pt;">=C2=B7</span><span style=3D"font-size: 7pt;"= > =0A= </span><span style=3D'font-family: "Verdana","sans-serif"; font-size: 9pt;'= >Here is the command in Nant.</span></p>=0A= </div></div></div><br><div>[The entire original message is not included.]</= div></body></html>= --_1D626BB0-917A-0CE0-2DA8-0C5E029608CC_-- --===============5166196636877497441== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ 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! http://p.sf.net/sfu/newrelic_d2d_may --===============5166196636877497441== 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 --===============5166196636877497441==--