Bugs item #1262651, was opened at 2005-08-18 03:36 Message generated for change (Comment added) made by drieseng You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1262651&group_id=31650
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. >Category: Core Group: 0.85 >Status: Closed >Resolution: Postponed Priority: 5 Submitted By: Andrew Davey (asdavey) >Assigned to: Gert Driesen (drieseng) Summary: Problem with 'if' and 'unless' attributes in asminfo Initial Comment: Problem: The 'if' and 'unless' attributes of the asminfo attribute element are being ignored (at least partially). If you place a condition in the 'if' attribute to check for the existence of a property (through property::exists), and have the same property assigned to the 'value' attribute, then NAnt raises the error: Property 'assemblyInfo.fileVersion' has not been set. Example: If you have the following: <asminfo output="AssemblyInfo.cs" language="CSharp"> <imports> <import namespace="System" /> <import namespace="System.Reflection" /> <import namespace="System.Runtime.InteropServices" /> </imports> <attributes> <attribute type="AseemblyVersion" value="${nonExistantProperty}" if="${property::exists('nonExistantProperty')" /> </attributes> </asminfo> Then nant will try to evaluate the expression '${nonExistantProperty}' before determining that this 'attribute' should be skipped since the test property::exists('nonExistantProperty') fails. ---------------------------------------------------------------------- >Comment By: Gert Driesen (drieseng) Date: 2005-09-02 20:29 Message: Logged In: YES user_id=707851 This is by design. I'm not sure if this is something we'll change. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=402868&aid=1262651&group_id=31650 ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ nant-developers mailing list nant-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nant-developers