Language

AbsolutePath.GetCanonicalForm Method

Definition

Returns the canonical form of this path, equivalent to calling GetFullPath(String).

public:
 Microsoft::Build::Framework::AbsolutePath GetCanonicalForm();
public Microsoft.Build.Framework.AbsolutePath GetCanonicalForm();
member this.GetCanonicalForm : unit -> Microsoft.Build.Framework.AbsolutePath
Public Function GetCanonicalForm () As AbsolutePath

Returns

An AbsolutePath representing the canonical form of the path.

Remarks

The canonical form of a path is exactly what GetFullPath(String) would produce, with the following properties:

  • All relative path segments ("." and "..") are resolved.
  • Directory separators are normalized to the platform convention (backslash on Windows).
  • Invalid path characters are rejected.

Preserves the OriginalValue of the current instance.

Applies to