BUILD FILE 1 <project name="bf1" default="Start"> <target name="Start"> {DO SOMETHING HERE}
<call target="BF2" /> </target> <target name="BF2"> <nant buildfile="{PATH TO BF2 DUILD FILE}\BF2.build" inheritall="false"> <properties> <property name="{PROPERTY NAME}" value="{PROPERTY VALUE}" /> </properties> </nant> </target> </project> BUILD FILE 2 <project name="bf2" default="Start"> <target name="Start"> {DO SOMETHING HERE} <call target="BF3" /> </target> <target name="BF3"> <nant buildfile="{PATH TO BF3 DUILD FILE}\BF3.build" inheritall="false"> <properties> <property name="{PROPERTY NAME}" value="{PROPERTY VALUE}" /> </properties> </nant> </target> </project> You would repeat something like this for each one. This link is helpful: http://nant.sourceforge.net/release/latest/help/tasks/nant.html Brian Wilson Programmer Analyst, Associate Department of Human Resources Email: brian.wil...@dhr.alabama.gov -----Original Message----- From: Jed Padilla [mailto:jpadi...@flclerks.com] Sent: Thursday, May 26, 2011 2:27 PM To: Wilson, Brian Subject: RE: [NAnt-users] Solution format of file is not supported. Do you have an example of the daisy chain, and how I could call one from the other? -----Original Message----- From: Wilson, Brian [mailto:brian.wil...@dhr.alabama.gov] Sent: Thursday, May 26, 2011 3:21 PM To: 'Jed Padilla' Subject: RE: [NAnt-users] Solution format of file is not supported. Yes you can, or you can daisy chain them. So the master calls build file, which calls build file 2 and so on. Brian Wilson Programmer Analyst, Associate Department of Human Resources Email: brian.wil...@dhr.alabama.gov -----Original Message----- From: Jed Padilla [mailto:jpadi...@flclerks.com] Sent: Thursday, May 26, 2011 2:20 PM To: Wilson, Brian; nant-users@lists.sourceforge.net Subject: RE: [NAnt-users] Solution format of file is not supported. The solution is indeed newer, it is VS2010. I will take a look at the link you gave below and see if that lets me do what I want. As a follow up question assuming I get this to work. Once I have all 10 .build files, can I make 1 .build file in the parent directory and invoke that to build all 10 other .builds in order? -----Original Message----- From: Wilson, Brian [mailto:brian.wil...@dhr.alabama.gov] Sent: Thursday, May 26, 2011 3:16 PM To: 'Jed Padilla'; nant-users@lists.sourceforge.net Subject: RE: [NAnt-users] Solution format of file is not supported. Are any of the projects dependent on another project? Do you have this specified in the solution file? I have never used this tag, as my projects usually involve web sites and desktop applications. You might want to use something along these lines. <solution configuration="release"> <projects> <include name="A\A.csproj" /> <include name="B\b.vbproj" /> <include name="C\c.csproj" /> </projects> <referenceprojects> <include name="X\x.csproj" /> </referenceprojects> </solution> If the solution is newer than VS2003, then you will need to use the MSBuild task from NAnt contrib. (Which is the one I usually use) http://stackoverflow.com/questions/327722/nant-and-vs2008-net-3-5-solution -format-of-file-solution-sln-is-not-supporte Brian Wilson Programmer Analyst, Associate Department of Human Resources Email: brian.wil...@dhr.alabama.gov From: Jed Padilla [mailto:jpadi...@flclerks.com] Sent: Thursday, May 26, 2011 1:23 PM To: nant-users@lists.sourceforge.net Subject: [NAnt-users] Solution format of file is not supported. I recently had a friend recommend NAnt to me. The project I am working on has 10 different solutions to it, and each solution usually has multiple projects within that will output dll files for the final solution to use. I have a very simple .build file right now: <project name="Solution Build Example" default="rebuild"> <property name="configuration" value="release"/> <target name="clean" description="Delete all previously compiled binaries."> <delete> <fileset> <include name="**/bin/**" /> <include name="**/obj/**" /> </fileset> </delete> </target> <target name="build" description="Build all targets."> <call target="build.FACCBase"/> </target> <target name="rebuild" depends="clean, build" /> <target name="build.FACCBase"> <solution configuration="${configuration}" solutionfile="FACCBase.sln"> </solution> </target> </project> The clean part is working fine, however when I get to the build portion I get errors: Solution format of file 'C:\TESTTFS\FACCBase\FACCBase.sln' is not supported. I am sure that you all will need more information to help me, so if you tell me what I am missing to get this working I will provide as much as I can. The solution in question has 8 projects and an active config of Debug|Any CPU Thanks. Jedadiah Padilla Programmer/Analyst || Florida Association of Court Clerks ------------------------------------------------------------------------------ vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 _______________________________________________ NAnt-users mailing list NAnt-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users