David Thielen wrote:
Hi;
For my compile task I do a <csc> and then an <exec> to sign (authenticode) the code. How can I set it to not sign it unless it is recompiled?
you could do somthing like:
<property name="lastwrite" value="${file::get-last-write-time('myfile.dll')}" />
<csc>
...
<exec ... if="${convert::to-datetime(lastwrite) < file::get-last-write-time(testfile) }" />
unfortunately you have to do the convert:to-datetime as properties are stored as strings once set.
Ian
------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users