NDepend.API Documentation
GetAbsolutePathFrom Method (IRelativeFilePath)
NDepend.Path Namespace > IRelativeFilePath Interface : GetAbsolutePathFrom Method
The pivot directory from which the absolute path is computed.
Resolve this relative file from pivotDirectory. If this file is "..\Dir2\File.txt" and pivotDirectory is "C:\Dir1\Dir3", the returned absolute file is "C:\Dir1\Dir2\File.txt".
Syntax

Parameters

pivotDirectory
The pivot directory from which the absolute path is computed.

Return Value

A new absolute file path representing this relative file resolved from pivotDirectory.
Exceptions
ExceptionDescription
An absolute path cannot be resolved from pivotDirectory. This can happen for example if pivotDirectory is "C:\Dir1" and this relative file path is "..\..\Dir2\File.txt".
Remarks
The returned file nor pivotDirectory need to exist for this operation to complete properly.
Requirements

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

See Also

Reference

IRelativeFilePath Interface
IRelativeFilePath Members