Re: VS2010 devenv command from NAnt fails
Nikhil Gupta <[email protected]> Fri, 24 May 2013 20:04:57 +0530
| Newsgroups | gmane.comp.windows.dotnet.nant.user |
|---|---|
| Message-ID | <CAEQcb7HL-n2Cxn9GgjegPby=cqL4e6kywEbivcaRy7PF+Pd3NQ@mail.gmail.com> |
--===============6872832991536611354== Content-Type: multipart/alternative; boundary=047d7b86f66605837c04dd77b411 --047d7b86f66605837c04dd77b411 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable This looks correct. You can also use msbuild task from nantcontrib, if you are using that. Unfortunately, I've never had a deployment project with in so have no clue on that. Bevan's clue might help. On May 24, 2013 3:13 PM, "Bhavani Kapparmath" <[email protected]= m> wrote: > Hi Nikil, > > > > Thank you for the quick response. > > > > I cannot use MSBuild because, we have one setup project. > > As an other note : > > > > Is this below command fine to execute MSBuild within nant build script? > > > > <property name=3D"MSBuildPath" > value=3D"C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe"/> > > <target name=3D"build-twin" description=3D"Build TWin targets"> > > <exec program=3D"${MSBuildPath}"> > > <arg line=3D"${SolutionFile} /t:rebuild > /p:Configuration=3D${TWinConfiguration} /fl" /> > > </exec> > > </target> > > > > > > *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:* Nikhil Gupta [mailto:[email protected]] > *Sent:* Friday, May 24, 2013 2:17 PM > *To:* Bhavani Kapparmath > *Cc:* [email protected] > *Subject:* Re: [NAnt-users] VS2010 devenv command from NAnt fails > > > > Any specific reason you are using devenv? Try using msbuild.exe instead. > > On May 24, 2013 1:48 PM, "Bhavani Kapparmath" < > [email protected]> wrote: > > Hello All, > > > > We are facing issue with building VS2010 from NAnt. Below are the details= : > > > > =B7 We migrated our project from Visual studio 2005 to Visual > studio 2010. > > =B7 Post migration, we are seeing build issue in the build server > machine. Details are below. > > =B7 Win 7 Professional SP1 versioned OS build machine is setup wi= th > Cruise control and NAnt script for automated builds with devenv. > > =B7 Building with *VS 2010 causes a number of projects to start b= ut > do not finish*. > > The only message appears in the log ( which is generated by /log switch o= f > devenv command) is : > > *----Rebuild All started:Project:DWRAPPER, > Configuration:BuildWithPortalSVC Win 32-* > > *----Rebuild All started:Project:XYZ, Configuration:BuildWithPortalSVC > Win 32---* > > =B7 Count of project failure like above is not the same for every > build. > > =B7 Building the project(solution file) in IDE is fine and also > from the Command line with devenv. > > =B7 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 BuildTwinWithPortalS= vc > /out ${BuildLog}"/> > </exec>* > > We are stuck here now. there is no other error message that helps to find > out what is happening during build of VS 2010 with NAnt. Why is the build > failing 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* > > 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 servi= ce > 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_ma= y > _______________________________________________ > NAnt-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/nant-users > > *Larsen & Toubro Limited * > > *www.larsentoubro.com* > > 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. > --047d7b86f66605837c04dd77b411 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <p dir=3D"ltr">This looks correct. You can also use msbuild task from nantc= ontrib, if you are using that. </p> <p dir=3D"ltr">Unfortunately,=A0 I've never had a deployment project wi= th in so have no clue on that. Bevan's clue might help.</p> <div class=3D"gmail_quote">On May 24, 2013 3:13 PM, "Bhavani Kapparmat= h" <<a href=3D"mailto:[email protected]">Bhavani.Kappar= [email protected]</a>> wrote:<br type=3D"attribution"><blockquote class=3D= "gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding= -left:1ex"> <div lang=3D"EN-US" link=3D"blue" vlink=3D"purple"> <div> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1f497d">Hi Nikil,</span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1f497d">=A0</span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1f497d">Thank you for the quick r= esponse.</span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1f497d">=A0</span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1f497d">I cannot use MSBuild beca= use, we have one setup project.</span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1f497d">As an other note :</span>= </p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1f497d">=A0</span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1f497d">Is this below command fin= e to execute MSBuild within nant build script?</span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1f497d">=A0</span></p> <p class=3D"MsoNormal" style=3D"margin-left:1.0in"><span style=3D"font-size= :11.0pt;font-family:"Calibri","sans-serif";color:#1f497= d"><property name=3D"MSBuildPath" value=3D"C:\WINDOWS\Mic= rosoft.NET\Framework\v4.0.30319\MSBuild.exe"/></span></p> <p class=3D"MsoNormal" style=3D"margin-left:1.0in"><span style=3D"font-size= :11.0pt;font-family:"Calibri","sans-serif";color:#1f497= d"><target name=3D"build-twin" description=3D"Build TWin = targets"></span></p> <p class=3D"MsoNormal" style=3D"margin-left:1.0in"><span style=3D"font-size= :11.0pt;font-family:"Calibri","sans-serif";color:#1f497= d">=A0=A0=A0=A0=A0 =A0=A0=A0=A0<exec program=3D"${MSBuildPath}"= ;></span></p> <p class=3D"MsoNormal" style=3D"margin-left:1.0in"><span style=3D"font-size= :11.0pt;font-family:"Calibri","sans-serif";color:#1f497= d">=A0 =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0<arg line=3D"${SolutionFile} /= t:rebuild /p:Configuration=3D${TWinConfiguration} /fl" /></span></p= > <p class=3D"MsoNormal" style=3D"margin-left:1.0in"><span style=3D"font-size= :11.0pt;font-family:"Calibri","sans-serif";color:#1f497= d">=A0=A0=A0=A0=A0=A0=A0 </exec></span></p> <p class=3D"MsoNormal" style=3D"margin-left:1.0in"><span style=3D"font-size= :11.0pt;font-family:"Calibri","sans-serif";color:#1f497= d"></target></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1f497d">=A0</span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1f497d">=A0</span></p> <p class=3D"MsoNormal"><i><u><span style=3D"font-size:11.0pt;font-family:&q= uot;Calibri","sans-serif";color:#1f497d">Kind regards,</span= ></u></i><span style=3D"font-size:11.0pt;font-family:"Calibri",&q= uot;sans-serif";color:#1f497d"></span></p> <p class=3D"MsoNormal"><i><span style=3D"font-size:11.0pt;font-family:"= ;Calibri","sans-serif";color:#1f497d">Bhavani Kapparmath.</s= pan></i><span style=3D"font-size:11.0pt;font-family:"Calibri",&qu= ot;sans-serif";color:#1f497d"></span></p> <p class=3D"MsoNormal"><i><span style=3D"font-size:11.0pt;font-family:"= ;Calibri","sans-serif";color:#1f497d">Tel # +91 080 6624 345= 2</span></i><span style=3D"font-size:11.0pt;font-family:"Calibri"= ,"sans-serif";color:#1f497d"></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1f497d">=A0</span><span style=3D"= font-size:11.0pt;font-family:"Calibri","sans-serif";col= or:#1f497d"></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1f497d">The information contained= in this email has been classified: </span><span style=3D"font-size:11.0pt;font-family:"Calibri",&quo= t;sans-serif";color:#1f497d"></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1f497d">(=A0 )=A0 Larsen & To= ubro Limited=A0 -=A0 General Business </span><span style=3D"font-size:11.0pt;font-family:"Calibri",&quo= t;sans-serif";color:#1f497d"></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1f497d">(X) Larsen &Toubro=A0= Limited=A0 -=A0=A0 Internal Use </span><span style=3D"font-size:11.0pt;font-family:"Calibri",&quo= t;sans-serif";color:#1f497d"></span></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1f497d">(=A0 )=A0 Larsen &Tou= bro=A0 Limited=A0 -=A0 Confidential</span><span style=3D"font-size:11.0pt;f= ont-family:"Calibri","sans-serif";color:#1f497d"></span= ></p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1f497d">(=A0 )=A0 Larsen & To= ubro Limited=A0 -=A0 Proprietary</span><span style=3D"font-size:11.0pt;font= -family:"Calibri","sans-serif";color:#1f497d"></span></= p> <p class=3D"MsoNormal"><span style=3D"font-size:11.0pt;font-family:"Ca= libri","sans-serif";color:#1f497d">=A0</span></p> <p class=3D"MsoNormal"><b><span style=3D"font-size:10.0pt;font-family:"= ;Tahoma","sans-serif"">From:</span></b><span style=3D"font-s= ize:10.0pt;font-family:"Tahoma","sans-serif""> Nikhil G= upta [mailto:<a href=3D"mailto:[email protected]" target=3D"_blank">nikhi= [email protected]</a>] <br> <b>Sent:</b> Friday, May 24, 2013 2:17 PM<br> <b>To:</b> Bhavani Kapparmath<br> <b>Cc:</b> <a href=3D"mailto:[email protected]" target=3D"_b= lank">[email protected]</a><br> <b>Subject:</b> Re: [NAnt-users] VS2010 devenv command from NAnt fails</spa= n></p> <p class=3D"MsoNormal">=A0</p> <p>Any specific reason you are using devenv? Try using msbuild.exe instead.= </p> <div> <p class=3D"MsoNormal">On May 24, 2013 1:48 PM, "Bhavani Kapparmath&qu= ot; <<a href=3D"mailto:[email protected]" target=3D"_blank">= [email protected]</a>> wrote:</p> <div> <div> <p class=3D"MsoNormal">Hello All,</p> <p class=3D"MsoNormal">=A0</p> <p class=3D"MsoNormal">We are facing issue with building VS2010 from NAnt. = Below are the details:</p> <p class=3D"MsoNormal">=A0</p> <p style=3D"margin-left:1.0in"><span style=3D"font-size:9.0pt;font-family:S= ymbol">=B7</span><span style=3D"font-size:7.0pt">=A0=A0=A0=A0=A0=A0=A0=A0 </span><span style=3D"font-size:9.0pt;font-family:"Verdana","= ;sans-serif"">We migrated our project from Visual studio 2005 to Visua= l studio 2010.</span></p> <p style=3D"margin-left:1.0in"><span style=3D"font-size:9.0pt;font-family:S= ymbol">=B7</span><span style=3D"font-size:7.0pt">=A0=A0=A0=A0=A0=A0=A0=A0 </span><span style=3D"font-size:9.0pt;font-family:"Verdana","= ;sans-serif"">Post migration, we are seeing build issue in the build s= erver machine. Details are below.</span></p> <p style=3D"margin-left:1.0in"><span style=3D"font-size:9.0pt;font-family:S= ymbol">=B7</span><span style=3D"font-size:7.0pt">=A0=A0=A0=A0=A0=A0=A0=A0 </span><span style=3D"font-size:9.0pt;font-family:"Verdana","= ;sans-serif"">Win 7 Professional SP1 versioned OS build machine is set= up with Cruise control and NAnt script for automated builds with devenv.</s= pan></p> <p style=3D"margin-left:1.0in"><span style=3D"font-size:9.0pt;font-family:S= ymbol">=B7</span><span style=3D"font-size:7.0pt">=A0=A0=A0=A0=A0=A0=A0=A0 </span><span style=3D"font-size:9.0pt;font-family:"Verdana","= ;sans-serif"">Building with <strong><span style=3D"font-family:"Verdana","sans-serif&quo= t;">VS 2010 causes a number of projects to start but do not finish</span></= strong>.</span></p> <p style=3D"margin-left:.5in;text-indent:.5in"><span style=3D"font-size:9.0= pt;font-family:"Verdana","sans-serif"">The only message= appears in the log ( which is generated by /log switch of devenv command) = is :</span></p> <p style=3D"margin-left:1.0in;text-indent:.5in"><strong><span style=3D"font= -size:9.0pt;font-family:"Verdana","sans-serif"">----Reb= uild All started:Project:DWRAPPER, Configuration:BuildWithPortalSVC Win 32-= </span></strong></p> <p style=3D"margin-left:1.0in;text-indent:.5in"><strong><span style=3D"font= -size:9.0pt;font-family:"Verdana","sans-serif"">----Reb= uild All started:Project:XYZ, Configuration:BuildWithPortalSVC Win 32---</s= pan></strong></p> <p style=3D"margin-left:1.0in"><span style=3D"font-size:9.0pt;font-family:S= ymbol">=B7</span><span style=3D"font-size:7.0pt">=A0=A0=A0=A0=A0=A0=A0=A0 </span><span style=3D"font-size:9.0pt;font-family:"Verdana","= ;sans-serif"">Count of project failure like above is not the same for = every build.</span></p> <p style=3D"margin-left:1.0in"><span style=3D"font-size:9.0pt;font-family:S= ymbol">=B7</span><span style=3D"font-size:7.0pt">=A0=A0=A0=A0=A0=A0=A0=A0 </span><span style=3D"font-size:9.0pt;font-family:"Verdana","= ;sans-serif"">Building the project(solution file)=A0in IDE is fine and= also from the Command line with devenv.</span></p> <p style=3D"margin-left:1.0in"><span style=3D"font-size:9.0pt;font-family:S= ymbol">=B7</span><span style=3D"font-size:7.0pt">=A0=A0=A0=A0=A0=A0=A0=A0 </span><span style=3D"font-size:9.0pt;font-family:"Verdana","= ;sans-serif"">Here is the command in Nant.</span></p> <p style=3D"margin-left:.5in;text-indent:.5in"><strong><span style=3D"font-= size:9.0pt;font-family:"Verdana","sans-serif"">=A0<e= xec program=3D"C:\Program Files\Microsoft Visual Studio 10.0\Common7\I= DE\devenv" verbose =3D "true"></span></strong><b><span st= yle=3D"font-size:9.0pt;font-family:"Verdana","sans-serif&quo= t;"><br> <strong><span style=3D"font-family:"Verdana","sans-serif&quo= t;">=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =A0=A0 <arg line=3D"${Solutio= nFile} /rebuild BuildTwinWithPortalSvc /out ${BuildLog}"/></span></= strong><br> <strong><span style=3D"font-family:"Verdana","sans-serif&quo= t;">=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 </exec></span></strong></span><= /b></p> <p style=3D"margin-left:.5in"><span style=3D"font-size:9.0pt;font-family:&q= uot;Verdana","sans-serif"">We are stuck here now. there is n= o other error message that helps to find out what is happening during build= of VS 2010 with NAnt. Why is the build failing with the above error message?</span></p> <p class=3D"MsoNormal">I am using NAnt 0.92. Also tried with nant-0.91-alph= a2. Same results.</p> <p class=3D"MsoNormal">Seems in Win XP machine the issue is not seen.</p> <p class=3D"MsoNormal">=A0</p> <p class=3D"MsoNormal">Should I attached log file in the mail? Please let m= e know.</p> <p class=3D"MsoNormal"><i><u><span style=3D"color:#1f497d">Kind regards,</s= pan></u></i></p> <p class=3D"MsoNormal"><i><span style=3D"color:#1f497d">Bhavani Kapparmath.= </span></i></p> <p class=3D"MsoNormal"><i><span style=3D"color:#1f497d">Tel # +91 080 6624 = 3452</span></i></p> <p class=3D"MsoNormal"><span style=3D"color:#1f497d">=A0</span></p> <p class=3D"MsoNormal"><span style=3D"color:#1f497d">The information contai= ned in this email has been classified: </span></p> <p class=3D"MsoNormal"><span style=3D"color:#1f497d">(=A0 )=A0 Larsen &= Toubro Limited=A0 -=A0 General Business </span></p> <p class=3D"MsoNormal"><span style=3D"color:#1f497d">(X) Larsen &Toubro= =A0 Limited=A0 -=A0=A0 Internal Use </span></p> <p class=3D"MsoNormal"><span style=3D"color:#1f497d">(=A0 )=A0 Larsen &= Toubro=A0 Limited=A0 -=A0 Confidential</span></p> <p class=3D"MsoNormal"><span style=3D"color:#1f497d">(=A0 )=A0 Larsen &= Toubro Limited=A0 -=A0 Proprietary</span></p> <p class=3D"MsoNormal">=A0</p> </div> <p><strong>Larsen & Toubro Limited </strong><br> <br> <strong><a href=3D"http://www.larsentoubro.com" target=3D"_blank">www.larse= ntoubro.com</a></strong></p> <p>This Email may contain confidential or privileged information for the in= tended recipient (s). If you are not the intended recipient, please do not = use or disseminate the information, notify the sender and delete it from yo= ur system.</p> </div> <p class=3D"MsoNormal" style=3D"margin-bottom:12.0pt"><br> ---------------------------------------------------------------------------= ---<br> Try New Relic Now & We'll Send You this Cool Shirt<br> New Relic is the only SaaS-based application performance monitoring service= <br> that delivers powerful full stack analytics. Optimize and monitor your<br> browser, app, & servers with just a few lines of code. Try New Relic<br= > and get this awesome Nerd Life shirt! <a href=3D"http://p.sf.net/sfu/newrel= ic_d2d_may" target=3D"_blank"> http://p.sf.net/sfu/newrelic_d2d_may</a><br> _______________________________________________<br> NAnt-users mailing list<br> <a href=3D"mailto:[email protected]" target=3D"_blank">NAnt-= [email protected]</a><br> <a href=3D"https://lists.sourceforge.net/lists/listinfo/nant-users" target= =3D"_blank">https://lists.sourceforge.net/lists/listinfo/nant-users</a></p> </div> </div> <p><span style><strong>Larsen & Toubro Limited </strong></span><br> <br> <strong><a href=3D"http://www.larsentoubro.com" target=3D"_blank">www.larse= ntoubro.com</a></strong></p> <p><span style>This Email may contain confidential or privileged informatio= n for the intended recipient (s). If you are not the intended recipient, pl= ease do not use or disseminate the information, notify the sender and delet= e it from your system.</span></p> </div> </blockquote></div> --047d7b86f66605837c04dd77b411-- --===============6872832991536611354== 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 --===============6872832991536611354== 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 --===============6872832991536611354==--