Debugging nant Duplicate Target

2019-09-06 06:10发布

问题:

Nant is complaining about a duplicate target, and as far as I can tell there is no duplicate. Is there some way to get nant to tell me which buildfiles it has open or is trying to open and where these tasks are so I can debug this?

回答1:

Although I haven't found a reasonable debugging solution, I did find that this was related to updating nant. An old buildscript that worked began to break on a "duplicate target" error. This was because a taskfile was included by 2 other taskfiles already included in the project. nant found two different paths to the same task, and thought it was two distinct tasks and consequently flipped.



标签: nant