NAnt: Check if include file was already included
问题 Does anybody know a way to check if a file was already included? <include buildfile="${script.dir}\util.include.nant" /> . . . . <include buildfile="${script.dir}\util.include.nant" /> This will throw an exception that a target was duplicated. Is there a way around? Thanks in advance 回答1: Just saw this question which seems related and decided to change the case of one of the duplicate includes in a.build in my other answer to: <include buildfile="c.build" /> <include buildfile="C.build" />