Hi Guys, I was facing same issue few days back with building VS 2005 soultion using NAnt.I think I have found a workaround that doesn't involve using any solution task.NAnt supports exec task which when used along with msbuild gives the desired result.Following is the snippet of code I am using:
<target name="build" depends="init,clean,getlatest,references,deploy" description="compiles the source code"> <exec program="C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\MSBuild.exe"> <arg value="${nant.project.basedir}\Templates\Templates.sln"/> <arg value="/t:Build"/> <arg value="/p:Configuration=release"/> </exec> </target> Hopefully this will help. Thanks Mandar --- Gary Feldman <[EMAIL PROTECTED]> wrote: > Rob McEllhiney wrote: > > > > Gert, > > > > > > > > I am a little confused? The home page says that > Framework 2.0 is now > > supported. I guess I am not clear as to what that > means. Please > > forgive my ignorance. > > > > > > > > Just to be clear though, is it true that at this > point there is no way > > for me to use Nant for builds on the source we > migrated to Studio 2005? > > > One thing Gert left out is that there is an msbuild > task in NAntContrib > (http://nantcontrib.sourceforge.net/) that will > build VS 2005 solutions. > > Gary > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get > the chance to share your > opinions on IT & business topics through brief > surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > NAnt-users mailing list > NAnt-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nant-users > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users