NDepend.API Documentation
TryResolveAbsolutePathFromProject(IProject,IDirectoryPath,IAbsoluteDirectoryPath,String) Method
NDepend.Project Namespace > ExtensionMethodsProject Class > TryResolveAbsolutePathFromProject Method : TryResolveAbsolutePathFromProject(IProject,IDirectoryPath,IAbsoluteDirectoryPath,String) Method
The project used for resolving the absolute path.
The directory path to resolve as absolute.
The result absolute directory path if the resolving succeed.
A plain english failure description if the resolving fails.
This method attempts to resolve an absolute directory path from a directory path
Syntax

Parameters

project
The project used for resolving the absolute path.
directoryPath
The directory path to resolve as absolute.
absoluteDirectoryPath
The result absolute directory path if the resolving succeed.
failureReason
A plain english failure description if the resolving fails.

Return Value

true if the absolute path resolving succeed, else returns false.
Remarks
If directoryPath is prefixed with an environment variable, project is not used for resolving the absolute path.
If directoryPath contains path variable(s), variables declared in project.IProject.PathVariables are used for resolving the absolute path.
If directoryPath is relative to the project file, project.IProject.Properties.FilePath is used for resolving the absolute path.
Requirements

Target Platforms: Windows 11, 10, 8, 7 and Linux, MacOS with net8.0, net7.0 or net6.0 installed

See Also

Reference

ExtensionMethodsProject Class
ExtensionMethodsProject Members
Overload List