[Mono-bugs] [Bug 358396] New: Conditional expression not correctly evaluated

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Feb 3 15:29:28 EST 2008


           Summary: Conditional expression not correctly evaluated
           Product: Mono: Tools
           Version: 1.2.6
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: xbuild
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: d4ljoyn at yahoo.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

In the following simple project file the Condition in the Enum target Message
task is not evaluated correctly while the same project works as expected with
MSBuild.  MSBuild prints Sample.resx .resx whereas xbuild prints nothing. (To
even run this example a patch for GenerateResouces.cs is required).

This test case comes from xbuild/tests/GenerateResource.

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" >
                <Files Include="Sample.resx" />
        <Target Name="Main" >
            <GenerateResource Sources="@(Files)"
        <Target Name="Enum" 
                Text="@(Files) @(Files->'%(Extension)')" 
                Condition=" '@(Files->'%(Extension)')' == '.resx' "/>
        <Target Name="Clean" >
           <Delete Files="@(Files->'%(Filename).resources')" />

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list