Hi Bill, you could use the <up2date/> task and then put a condition on your <csc/>, <vbc/> to build only if the property you set exists. Take a look at the task docs and the function docs property::exists (take note of the need for quotes around your property name for this function).
Cheers, Clayton > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Sent: January 10, 2005 1:39 AM > To: nant-users@lists.sourceforge.net > Subject: [Nant-users] Will my application compile? > > > Hi folks, > > I am changing my build scripts to use <asminfo> to > dynamically generate the AssemblyInfo files, however this is > giving me a problem. Because the file is generated, then my > compiled DLL is always out of date with respect to the source > and so always gets build. What I want to do is to put a > condition on the <asminfo> task to only execute if executing > <vbc> or <csc> would result in the DLL being re-built. I > vaguely remember seeing something about this before, but > can't find anything in the archives. > > Anyone know a way of testing if my <vbc> / <csc> will build > the DLL without actually executing them or will I have to > write a custom task? > > Any pointers appreciated > > Cheers, > > Bill > > > > UK businesses use 2 million tonnes of paper each year. > THINK before you PRINT this email. > ______________________________________________________________ > > CONFIDENTIALITY NOTICE > > This communication and the information it contains is > intended for the person or organisation to > whom it is addressed. Its contents are confidential and may > be protected in law. Unauthorised use, copying or > disclosure of any of it may be unlawful. If you are not the > intended recipient, please > contact us immediately. > > The contents of any attachments in this e-mail may contain > software viruses, which could damage your > own computer system. While Marlborough Stirling has taken > every reasonable precaution to minimise > this risk, we cannot accept liability for any damage, which > you sustain as a result of software > viruses. You should carry out your own virus checking > procedure before opening any attachment. > > Marlborough Stirling plc, Registered in England and Wales > Registered No. 3008820, > Jessop House, Jessop Avenue, Cheltenham, Gloucestershire, GL50 3SH > Tel: 01242 547000 Fax: 01242 547100 > http://www.marlborough-stirling.com > > > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from > ThinkGeek. It's fun and FREE -- well, > almost....http://www.thinkgeek.com/sfshirt > _______________________________________________ > Nant-users mailing list > Nant-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nant-users > ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Nant-users mailing list Nant-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-users