Searches the probing paths of the current target framework for the specified file.
The absolute path to fileName if found in one of the configured probing; otherwise, an error is reported.
The (relative) probing paths are resolved relative to the specified base directory.
The configured probing paths are scanned recursively in the order in which they are defined in the framework configuration.
The file name to search should include the extension.
Exception Type | Condition |
---|---|
FileNotFoundException | fileName could not be found in the configured probing paths. |
Compile an assembly referencing the nunit.framework
assembly for the current target framework that is shipped as part of the NAnt distribution.
<csc target="library" output="NAnt.Core.Tests.dll"> <sources basedir="NAnt.Core"> <include name="**/*.cs" /> </sources> <references> <include name="NAnt.Core.dll" /> <include name="${framework::get-lib-path('nunit.framework.dll')}" /> </references> </csc>
NAntFunctions Class | NAnt.Core.Functions Namespace | NAntFunctions.ScanProbingPaths Overload List