3 writes to Value
Microsoft.Build.Framework (3)
PathHelpers\AbsolutePath.cs (3)
49
Value
= path;
76
Value
= path;
112
Value
= Path.Combine(basePath.Value, path);
30 references to Value
Microsoft.Build.Framework (30)
FileUtilities.cs (18)
144
if (string.IsNullOrEmpty(path.
Value
))
151
if (IsSlash(path.
Value
[path.
Value
.Length - 1]) && !HasWindowsDirectorySeparatorOnUnix(path.
Value
))
156
return new AbsolutePath(EnsureTrailingSlash(path.
Value
),
172
if (string.IsNullOrEmpty(path.
Value
))
179
if (!IsSlash(path.
Value
[path.
Value
.Length - 1]) && !HasWindowsDirectorySeparatorOnUnix(path.
Value
))
184
return new AbsolutePath(EnsureNoTrailingSlash(path.
Value
),
200
if (string.IsNullOrEmpty(path.
Value
))
205
if (!MayHaveRelativeSegment(path.
Value
) &&
206
!HasWindowsDirectorySeparatorOnUnix(path.
Value
) &&
207
!HasUnixDirectorySeparatorOnWindows(path.
Value
))
212
return new AbsolutePath(FixFilePath(Path.GetFullPath(path.
Value
)),
222
if (string.IsNullOrEmpty(path.
Value
) || !HasWindowsDirectorySeparatorOnUnix(path.
Value
))
227
return new AbsolutePath(FixFilePath(path.
Value
),
PathHelpers\AbsolutePath.cs (12)
112
Value = Path.Combine(basePath.
Value
, path);
120
public static implicit operator string(AbsolutePath path) => path.
Value
;
144
if (string.IsNullOrEmpty(
Value
))
159
bool hasRelativeSegment =
Value
.Contains("/.") ||
Value
.Contains("\\.");
163
bool needsSeparatorNormalization = NativeMethods.IsWindows &&
Value
.IndexOf(Path.AltDirectorySeparatorChar) >= 0;
172
return new AbsolutePath(Path.GetFullPath(
Value
), OriginalValue, ignoreRootedCheck: true);
203
public bool Equals(AbsolutePath other) => s_pathComparer.Equals(
Value
, other.
Value
);
209
public override int GetHashCode() =>
Value
is null ? 0 : s_pathComparer.GetHashCode(
Value
);
215
public override string ToString() =>
Value
;