Reputation: 35394
Are the keywords used for project, target, task, function, ... in NAnt build files case sensitive or not?
Upvotes: 2
Views: 645
Reputation: 6216
In a word: Yes.
NAnt is case-sensitive, even if Windows isn't fussed.
Upvotes: 1
Reputation: 7187
Try this NAnt build script:
<?xml version="1.0" encoding="utf-8" ?>
<!-- ====================================================================== -->
<!-- test case sensitiveness -->
<!-- ====================================================================== -->
<project name="test.casesensitiveness" default="test">
<target name="test">
<property name="foo" value="bar" />
<echo message="Does property 'foo' exist? ${property::exists('foo')}" />
<echo message="Does property 'Foo' exist? ${property::exists('Foo')}" />
</target>
</project>
Here is the output:
test:
[echo] Does property 'foo' exist? True
[echo] Does property 'Foo' exist? False
So, yes identifiers in NAnt are case-sensitive.
Upvotes: 7