From: <ric...@ti...> - 2006-10-18 09:20:56
|
Thanks for the advise :) =20 When the new release came (http://nant.sourceforge.net/release/0.85/releasenotes.html) i thought that the <solution> task was supported for the VS 2005 format but a closer look at the documentation told me otherwise. I think i will use the <csc> task until the <solution> task handles VS 2005 project files =20 br Richard ________________________________ From: nan...@li... [mailto:nan...@li...] On Behalf Of Arnette, Bill Sent: 17. oktober 2006 23:07 To: Kumar .S; nan...@li... Subject: Re: [NAnt-users] "Error loading GUID..." when using <solution> taskforVS2005 I don't know what to tell you. I've told you two different ways to build VS 2005 solutions. For VS 2003 solutions, you continue to use the <solution> task. But for VS 2005 solutions use either the <exec> task to run msbuild.exe or the <msbuild> task from the NAntContrib package. When using the latter , make sure that the environment is set up for .NET 2.0 development (VS 2005 command prompt). My advice is to play around with the two possible ways and see what works best for you. =20 Another alternative is to switch your build system entirely to MSBuild which shouldn't be too difficult because MSBuild is very similar to NAnt. ________________________________ From: Kumar .S [mailto:kum...@gm...]=20 Sent: Tuesday, October 17, 2006 4:19 PM To: Arnette, Bill Subject: Re: [NAnt-users] "Error loading GUID..." when using <solution> task forVS2005 =09 =09 Hello Arnette, =20 I was compiling on VS 2005. But the component was built in VS 2003. The nant wont work for new VS 2005 files or for what files its not going to compile. Please let me know. Because I have installed VS 2005 on my machine and also VS 2003 is also available on my machine. When I tried to compile with the xml which I was having previously it was executed and compiled properly. I dont have any new code for VS 2005 yet. But the development has started in VS 2005. So, now what is going to happen. Will my NANT work once I shift completely to VS 2005. Please let me know Sir.=20 =20 Please. Regards, Kumar =09 =20 On 10/17/06, Kumar .S <kum...@gm...> wrote:=20 Actually I will be out for lunch. I will be back in an hour. Once I try I will let you know.=20 =09 =09 =09 On 10/17/06, Arnette, Bill <bi...@si... > wrote:=20 MSBuild is in .NET 2.0 *only*. It will not work with VS 2003 solutions, only VS 2005 solutions. You need to run your Nant script in a VS 2005 command prompt. =20 ________________________________ From: Kumar .S [mailto:kum...@gm...]=20 Sent: Tuesday, October 17, 2006 2:40 PM=20 =09 To: Arnette, Bill Subject: Re: [NAnt-users] "Error loading GUID..." when using <solution> task forVS2005 =09 =20 =09 After copying those now the error says=20 =20 Failed to start MSBuild.=20 =09 c:\winnet\Microsoft.net\framework\v1.1.4322\msbuild.exe failed to start. the system cannot find the file specified.=20 =20 and says build failed. =09 =20 On 10/17/06, Arnette, Bill <bi...@si... > wrote:=20 You have to install NantContrib. easiest way is to download the NantContrib binary package (see the URL in the mail below) and copy the DLLs into the Nant\bin directory. =20 =20 Otherwise use the <exec> task like I showed you before. ________________________________ From: Kumar .S [mailto:kum...@gm...]=20 Sent: Tuesday, October 17, 2006 2:31 PM=20 =09 To: Arnette, Bill Subject: Re: [NAnt-users] "Error loading GUID..." when using <solution> task forVS2005 =09 =20 =09 Sorry Sir, =20 Its not working. Its saying MSBUILD is not a recognized. and says unknows tasks or datatype. =20 Regards, Kumar =09 =20 On 10/17/06, Arnette, Bill <bi...@si... > wrote:=20 You are still using NAnt to drive the build, but msbuild is actually compiling the .Net project. =09 I see that NAntContrib [1] has an <msbuild> task [2] that you would use instead of the <solution> task or the <exec> task. =09 So, after installing NAntContrib, you could do: =09 <?xml version=3D" 1.0" encoding=3D"utf-8" ?> <project name=3D"OMEGA" default=3D"Run"> =09 <target name=3D"Transport" description=3D"this is builds the solutions file"> <msbuild target=3D"Release" project=3D"C:\Program =09 Files\OMEGA\siebel\src\Transport\Transport.sln" failonerror=3D"true"> <property name=3D"Configuration" value=3D"Release" />=20 </msbuild> </target> =09 <target name=3D"Run" description=3D"Runs the entire process of pushing develop to qa."> <call target=3D"Transport" /> </target>=20 </project> =09 =09 [1] http://nantcontrib.sourceforge.net/ [2] =09 http://nantcontrib.sourceforge.net/release/latest/help/tasks/msbuild.htm l =09 =09 =09 =09 =09 ________________________________ =09 From: Kumar .S [mailto: kum...@gm... <mailto:kum...@gm...> ] Sent: Tuesday, October 17, 2006 1:52 PM To: Arnette, Bill=20 Subject: Re: [NAnt-users] "Error loading GUID..." when using <solution> task forVS2005 =09 =09 =09 Hello Arnette,=20 =09 So, according to NANT wont support for VS=20 2005. Is that true. U said its not going to support. In what way its not supporting. We wont be able to compile. VS 2005 .net applications.=20 =09 Regards, Kumar =09 =09 |