[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
https://bugzilla.novell.com/show_bug.cgi?id=358396
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" >
<ItemGroup>
<Files Include="Sample.resx" />
</ItemGroup>
<Target Name="Main" >
<GenerateResource Sources="@(Files)"
OutputResources="@(Files->'%(Filename).resources')">
<Output
TaskParameter="OutputResources"
ItemName="Resources"/>
</GenerateResource>
</Target>
<Target Name="Enum"
DependsOnTargets="Main">
<Message
Text="@(Files) @(Files->'%(Extension)')"
Condition=" '@(Files->'%(Extension)')' == '.resx' "/>
</Target>
<Target Name="Clean" >
<Delete Files="@(Files->'%(Filename).resources')" />
</Target>
</Project>
--
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