NAnt.Core.FrameworkInfo.GetToolPath C# (CSharp) Method

GetToolPath() private method

Searches the list of tool paths of the current framework for the given file, and returns the absolute path if found.

The configured tool paths are scanned in the order in which they are defined in the framework configuration.

The file name of the tool to search should include the extension.

is .
private GetToolPath ( string tool ) : string
tool string The file name of the tool to search for.
return string
        internal string GetToolPath(string tool)
        {
            if (tool == null)
                throw new ArgumentNullException ("tool");

            return FileUtils.ResolveFile(ToolPaths, tool, false);
        }