本文介绍了调试nant重复目标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

南特(Nant)抱怨目标重复,据我所知没有重复.有什么办法让南特告诉我它已经打开或正在打开哪些构建文件以及这些任务在哪里,以便我可以调试它?

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?

推荐答案

尽管我没有找到合理的调试解决方案,但我确实发现这与更新nant有关.一个有效的旧构建脚本开始因重复目标"错误而中断.这是因为一个任务文件已被项目中已经包含的另外两个任务文件包括在内.南特找到了完成同一任务的两条不同路径,并认为这是两个截然不同的任务,因此被抛弃了.

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重复目标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-17 12:01