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