The correct way to do this is to write the command line used to compile
the assembly into the output folder as a separate file.  The
csc/compilerbase task then reads that file and compares it to what it is
about to use to compile the assembly.  

If they are different run the build.  
If it is missing, run the build.  
If it exists check for changed source files
        If they have changed, run the build.

Depending on the datestamp of a build file is wrong as the build file
can be changed for many reasons that shouldn't cause a recompile.

> -----Original Message-----
> From: Smith, Eric V. [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, October 08, 2002 6:31 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [nant-dev] RecompileNeeded enhancement
> 
> 
> I've never been a fan of having everything recompile if the 
> build file (or makefile) changes.  I often make changes to 
> the build file that don't invalidate any of the outputs.  If 
> anything, this should be optional, but I'd rather see it not 
> included.  What does everyone else think?
> 
> -----Original Message-----
> From: Martin Aliger [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, October 08, 2002 9:26 AM
> To: [EMAIL PROTECTED]
> Subject: [nant-dev] RecompileNeeded enhancement
> 
> 
> Hi all,
> 
> I draft one enhancenment to recompile-needed feature in 
> CompilerBase. I'm heading to compile mono classes by nant. 
> This is lot of subprojects/namespaces and files and this 
> feature is desirable.
> 
> 1/ Added support for changed .build projects
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf 
> _______________________________________________
> Nant-developers mailing list [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/nant-developers
> 


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to