AbsolutePath.GetCanonicalForm Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.