3 writes to Value
Microsoft.Build.Framework (3)
PathHelpers\AbsolutePath.cs (3)
49Value = path; 76Value = path; 112Value = Path.Combine(basePath.Value, path);
61 references to Value
Microsoft.Build (2)
BackEnd\Components\RequestBuilder\RequestBuilder.cs (2)
910entryToComplete.RequestConfiguration.SavedCurrentDirectory = entryToComplete.TaskEnvironment.ProjectDirectory.Value; 1401_requestEntry.RequestConfiguration.SavedCurrentDirectory = _requestEntry.TaskEnvironment.ProjectDirectory.Value;
Microsoft.Build.CommandLine.UnitTests (1)
MSBuildMultithreaded_Tests.cs (1)
53if (string.IsNullOrEmpty(TaskEnvironment.ProjectDirectory.Value))
Microsoft.Build.Engine.UnitTests (9)
BackEnd\TaskEnvironment_Tests.cs (9)
191retrievedDirectory.Value.ShouldBe(testDirectory); 197newRetrievedDirectory.Value.ShouldBe(alternateDirectory); 233Path.IsPathRooted(absolutePath.Value).ShouldBeTrue(); 235absolutePath.Value.ShouldBe(expectedPath); 254resultPath.Value.ShouldBe(absoluteInputPath); 395env.ProjectDirectory.Value.ShouldBe(projectDir); 430env.ProjectDirectory.Value.ShouldBe(projectDir); 483absolutePath.Value.ShouldNotBeNullOrEmpty(); 484absolutePath.Value.ShouldContain(invalidPath);
Microsoft.Build.Framework (36)
FileUtilities.cs (18)
272if (string.IsNullOrEmpty(path.Value)) 279if (IsSlash(path.Value[path.Value.Length - 1]) && !HasWindowsDirectorySeparatorOnUnix(path.Value)) 284return new AbsolutePath(EnsureTrailingSlash(path.Value), 300if (string.IsNullOrEmpty(path.Value)) 307if (!IsSlash(path.Value[path.Value.Length - 1]) && !HasWindowsDirectorySeparatorOnUnix(path.Value)) 312return new AbsolutePath(EnsureNoTrailingSlash(path.Value), 328if (string.IsNullOrEmpty(path.Value)) 333if (!MayHaveRelativeSegment(path.Value) && 334!HasWindowsDirectorySeparatorOnUnix(path.Value) && 335!HasUnixDirectorySeparatorOnWindows(path.Value)) 340return new AbsolutePath(FixFilePath(NewPath.GetFullPath(path.Value)), 350if (string.IsNullOrEmpty(path.Value) || !HasWindowsDirectorySeparatorOnUnix(path.Value)) 355return new AbsolutePath(FixFilePath(path.Value),
MultiProcessTaskEnvironmentDriver.cs (1)
35set => NativeMethods.SetCurrentDirectory(value.Value);
MultiThreadedTaskEnvironmentDriver.cs (2)
64FileUtilities.CurrentThreadWorkingDirectory = _currentDirectory.Value; 115WorkingDirectory = ProjectDirectory.Value
PathHelpers\AbsolutePath.cs (15)
112Value = Path.Combine(basePath.Value, path); 120public static implicit operator string(AbsolutePath path) => path.Value; 144if (string.IsNullOrEmpty(Value)) 160bool hasRelativeSegment = Value.Contains("/.") || Value.Contains("\\."); 164bool needsSeparatorNormalization = NativeMethods.IsWindows && Value.IndexOf(Path.AltDirectorySeparatorChar) >= 0; 175hasConsecutiveSeparators = Value.Length > 3 && Value.IndexOf("\\\\", 1, StringComparison.Ordinal) >= 0; 179hasConsecutiveSeparators = Value.Contains("//"); 190return new AbsolutePath(Path.GetFullPath(Value), OriginalValue, ignoreRootedCheck: true); 221public bool Equals(AbsolutePath other) => s_pathComparer.Equals(Value, other.Value); 227public override int GetHashCode() => Value is null ? 0 : s_pathComparer.GetHashCode(Value); 233public override string ToString() => Value;
Microsoft.Build.Framework.UnitTests (7)
AbsolutePath_Tests.cs (7)
27absolutePath.Value.ShouldBe(path); 43absolutePath.Value.ShouldBe(absolutePathString); 44Path.IsPathRooted(absolutePath.Value).ShouldBeTrue(); 96Path.IsPathRooted(absolutePath.Value).ShouldBeTrue(); 99absolutePath.Value.ShouldBe(expectedPath); 189absolutePath.Value.ShouldBe(path); 280result.Value.ShouldBe(systemResult);
Microsoft.Build.Tasks.Core (6)
AssignTargetPath.cs (4)
132if (itemSpecFullFileNamePath.Value.StartsWith(fullRootPath.Value, FileUtilities.PathComparison)) 135targetPath = itemSpecFullFileNamePath.Value.Substring(fullRootPath.Value.Length);
WriteCodeFragment.cs (2)
126OutputFile = new TaskItem(Path.Combine(OutputDirectory.ItemSpec, Path.GetFileName(outputFilePath.Value))); 136string lockedFileMessage = LockCheck.GetLockedFileMessage(outputFilePath.Value ?? itemSpec);