Gets an enumeration of all absolute paths to be searched in order to find a given resource.

Namespace:  Gallio.Runtime.Extensibility
Assembly:  Gallio (in Gallio.dll) Version: 3.3.0.0 (3.3.610.0)

Syntax

C#
IEnumerable<string> GetSearchPaths(
	string resourcePath
)
Visual Basic (Declaration)
Function GetSearchPaths ( _
	resourcePath As String _
) As IEnumerable(Of String)

Parameters

resourcePath
Type: System..::.String
The relative or absolute path of the resource to find or null to return the paths of the search directories themselves.

Return Value

An enumeration of search paths.

Remarks

The enumeration consists of all combinations of the base directory and probing paths, including the use of an optional "bin" directory. For example, if the base directory is "C:\Base", and the probing paths list contains "Probing", and we are looking for "resource.dll" then this method will return the following paths: "C:\Base\resource.dll", "C:\Base\bin\resource.dll", "C:\Base\Probing\resource.dll" and "C:\Base\Probing\bin\resource.dll".

If the resource path is absolute then the returned search paths will consist of just that absolute path.

See Also