5 instantiations of AbsolutePath
Microsoft.Build.Framework (5)
FileUtilities.cs (4)
156
return new
AbsolutePath
(EnsureTrailingSlash(path.Value),
184
return new
AbsolutePath
(EnsureNoTrailingSlash(path.Value),
212
return new
AbsolutePath
(FixFilePath(Path.GetFullPath(path.Value)),
227
return new
AbsolutePath
(FixFilePath(path.Value),
PathHelpers\AbsolutePath.cs (1)
172
return new
AbsolutePath
(Path.GetFullPath(Value), OriginalValue, ignoreRootedCheck: true);
34 references to AbsolutePath
Microsoft.Build.Framework (34)
FileUtilities.cs (8)
142
internal static
AbsolutePath
EnsureTrailingSlash(
AbsolutePath
path)
170
internal static
AbsolutePath
EnsureNoTrailingSlash(
AbsolutePath
path)
198
internal static
AbsolutePath
NormalizePath(
AbsolutePath
path)
220
internal static
AbsolutePath
FixFilePath(
AbsolutePath
path)
ITaskEnvironmentDriver.cs (2)
21
AbsolutePath
ProjectDirectory { get; internal set; }
28
AbsolutePath
GetAbsolutePath(string path);
PathHelpers\AbsolutePath.cs (22)
24
public readonly struct AbsolutePath : IEquatable<
AbsolutePath
>
42
/// Initializes a new instance of the <see cref="
AbsolutePath
"/> struct.
54
/// Initializes a new instance of the <see cref="
AbsolutePath
"/> struct.
65
/// Initializes a new instance of the <see cref="
AbsolutePath
"/> struct.
100
/// Initializes a new instance of the <see cref="
AbsolutePath
"/> struct by combining an absolute path with a relative path.
105
public AbsolutePath(string path,
AbsolutePath
basePath)
120
public static implicit operator string(
AbsolutePath
path) => path.Value;
126
/// An <see cref="
AbsolutePath
"/> representing the canonical form of the path.
142
internal
AbsolutePath
GetCanonicalForm()
176
/// Determines whether two <see cref="
AbsolutePath
"/> instances are equal.
181
public static bool operator ==(
AbsolutePath
left,
AbsolutePath
right) => left.Equals(right);
184
/// Determines whether two <see cref="
AbsolutePath
"/> instances are not equal.
189
public static bool operator !=(
AbsolutePath
left,
AbsolutePath
right) => !left.Equals(right);
192
/// Determines whether the specified object is equal to the current <see cref="
AbsolutePath
"/>.
195
/// <returns><c>true</c> if the specified object is an <see cref="
AbsolutePath
"/> and is equal to the current instance; otherwise, <c>false</c>.</returns>
196
public override bool Equals(object? obj) => obj is
AbsolutePath
other && Equals(other);
199
/// Determines whether the specified <see cref="
AbsolutePath
"/> is equal to the current instance.
201
/// <param name="other">The <see cref="
AbsolutePath
"/> to compare with the current instance.</param>
203
public bool Equals(
AbsolutePath
other) => s_pathComparer.Equals(Value, other.Value);
206
/// Returns a hash code for this <see cref="
AbsolutePath
"/>.
TaskEnvironment.cs (2)
28
public
AbsolutePath
ProjectDirectory
40
public
AbsolutePath
GetAbsolutePath(string path) => _driver.GetAbsolutePath(path);