NDepend.API Documentation
TryResolveAbsolutePathFromProject(IProject,IPath,IAbsolutePath) Method
NDepend.Project Namespace > ExtensionMethodsProject Class > TryResolveAbsolutePathFromProject Method : TryResolveAbsolutePathFromProject(IProject,IPath,IAbsolutePath) Method
The project used for resolving the absolute path.
The path to resolve as absolute.
The result absolute path if the resolving succeed.
This method attempts to resolve an absolute path from a path
Syntax
[Extension()]
public static bool TryResolveAbsolutePathFromProject( 
   IProject project,
   IPath path,
   out IAbsolutePath absolutePath
)

Parameters

project
The project used for resolving the absolute path.
path
The path to resolve as absolute.
absolutePath
The result absolute path if the resolving succeed.

Return Value

true if the absolute path resolving succeed, else returns false.
Remarks
If path is prefixed with an environment variable, project is not used for resolving the absolute path.
If path contains path variable(s), variables declared in project.IProject.PathVariables are used for resolving the absolute path.
If path 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