3 writes to Value
Microsoft.Build.Framework (3)
PathHelpers\AbsolutePath.cs (3)
49Value = path; 76Value = path; 112Value = Path.Combine(basePath.Value, path);
56 references to Value
Microsoft.Build (2)
BackEnd\Components\RequestBuilder\RequestBuilder.cs (2)
912entryToComplete.RequestConfiguration.SavedCurrentDirectory = entryToComplete.TaskEnvironment.ProjectDirectory.Value; 1400_requestEntry.RequestConfiguration.SavedCurrentDirectory = _requestEntry.TaskEnvironment.ProjectDirectory.Value;
Microsoft.Build.CommandLine.UnitTests (1)
MSBuildMultithreaded_Tests.cs (1)
52if (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 (29)
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 (8)
112Value = Path.Combine(basePath.Value, path); 120public static implicit operator string(AbsolutePath path) => path.Value; 144return new AbsolutePath(System.IO.Path.GetFullPath(Value), OriginalValue, ignoreRootedCheck: true); 175public bool Equals(AbsolutePath other) => s_pathComparer.Equals(Value, other.Value); 181public override int GetHashCode() => Value is null ? 0 : s_pathComparer.GetHashCode(Value); 187public 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); 278result.Value.ShouldBe(systemResult);
Microsoft.Build.Tasks.Core (8)
AssignTargetPath.cs (4)
134if (itemSpecFullFileNamePath.Value.StartsWith(fullRootPath.Value, FileUtilities.PathComparison)) 137targetPath = itemSpecFullFileNamePath.Value.Substring(fullRootPath.Value.Length);
GetReferenceAssemblyPaths.cs (1)
263rootPath?.Value,
Unzip.cs (1)
190ErrorUtilities.VerifyThrowInvalidOperation(fullDestinationPath.Value.StartsWith(fullDestinationDirectoryPath, FileUtilities.PathComparison), "Unzip.ZipSlipExploit", fullDestinationPath);
WriteCodeFragment.cs (2)
126OutputFile = new TaskItem(Path.Combine(OutputDirectory.ItemSpec, Path.GetFileName(outputFilePath.Value))); 136string lockedFileMessage = LockCheck.GetLockedFileMessage(outputFilePath.Value ?? itemSpec);