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);
56 references to Value
Microsoft.Build (2)
BackEnd\Components\RequestBuilder\RequestBuilder.cs (2)
912
entryToComplete.RequestConfiguration.SavedCurrentDirectory = entryToComplete.TaskEnvironment.ProjectDirectory.
Value
;
1400
_requestEntry.RequestConfiguration.SavedCurrentDirectory = _requestEntry.TaskEnvironment.ProjectDirectory.
Value
;
Microsoft.Build.CommandLine.UnitTests (1)
MSBuildMultithreaded_Tests.cs (1)
52
if (string.IsNullOrEmpty(TaskEnvironment.ProjectDirectory.
Value
))
Microsoft.Build.Engine.UnitTests (9)
BackEnd\TaskEnvironment_Tests.cs (9)
191
retrievedDirectory.
Value
.ShouldBe(testDirectory);
197
newRetrievedDirectory.
Value
.ShouldBe(alternateDirectory);
233
Path.IsPathRooted(absolutePath.
Value
).ShouldBeTrue();
235
absolutePath.
Value
.ShouldBe(expectedPath);
254
resultPath.
Value
.ShouldBe(absoluteInputPath);
395
env.ProjectDirectory.
Value
.ShouldBe(projectDir);
430
env.ProjectDirectory.
Value
.ShouldBe(projectDir);
483
absolutePath.
Value
.ShouldNotBeNullOrEmpty();
484
absolutePath.
Value
.ShouldContain(invalidPath);
Microsoft.Build.Framework (29)
FileUtilities.cs (18)
272
if (string.IsNullOrEmpty(path.
Value
))
279
if (IsSlash(path.
Value
[path.
Value
.Length - 1]) && !HasWindowsDirectorySeparatorOnUnix(path.
Value
))
284
return new AbsolutePath(EnsureTrailingSlash(path.
Value
),
300
if (string.IsNullOrEmpty(path.
Value
))
307
if (!IsSlash(path.
Value
[path.
Value
.Length - 1]) && !HasWindowsDirectorySeparatorOnUnix(path.
Value
))
312
return new AbsolutePath(EnsureNoTrailingSlash(path.
Value
),
328
if (string.IsNullOrEmpty(path.
Value
))
333
if (!MayHaveRelativeSegment(path.
Value
) &&
334
!HasWindowsDirectorySeparatorOnUnix(path.
Value
) &&
335
!HasUnixDirectorySeparatorOnWindows(path.
Value
))
340
return new AbsolutePath(FixFilePath(NewPath.GetFullPath(path.
Value
)),
350
if (string.IsNullOrEmpty(path.
Value
) || !HasWindowsDirectorySeparatorOnUnix(path.
Value
))
355
return new AbsolutePath(FixFilePath(path.
Value
),
MultiProcessTaskEnvironmentDriver.cs (1)
35
set => NativeMethods.SetCurrentDirectory(value.
Value
);
MultiThreadedTaskEnvironmentDriver.cs (2)
64
FileUtilities.CurrentThreadWorkingDirectory = _currentDirectory.
Value
;
115
WorkingDirectory = ProjectDirectory.
Value
PathHelpers\AbsolutePath.cs (8)
112
Value = Path.Combine(basePath.
Value
, path);
120
public static implicit operator string(AbsolutePath path) => path.
Value
;
144
return new AbsolutePath(System.IO.Path.GetFullPath(
Value
), OriginalValue, ignoreRootedCheck: true);
175
public bool Equals(AbsolutePath other) => s_pathComparer.Equals(
Value
, other.
Value
);
181
public override int GetHashCode() =>
Value
is null ? 0 : s_pathComparer.GetHashCode(
Value
);
187
public override string ToString() =>
Value
;
Microsoft.Build.Framework.UnitTests (7)
AbsolutePath_Tests.cs (7)
27
absolutePath.
Value
.ShouldBe(path);
43
absolutePath.
Value
.ShouldBe(absolutePathString);
44
Path.IsPathRooted(absolutePath.
Value
).ShouldBeTrue();
96
Path.IsPathRooted(absolutePath.
Value
).ShouldBeTrue();
99
absolutePath.
Value
.ShouldBe(expectedPath);
189
absolutePath.
Value
.ShouldBe(path);
278
result.
Value
.ShouldBe(systemResult);
Microsoft.Build.Tasks.Core (8)
AssignTargetPath.cs (4)
134
if (itemSpecFullFileNamePath.
Value
.StartsWith(fullRootPath.
Value
, FileUtilities.PathComparison))
137
targetPath = itemSpecFullFileNamePath.
Value
.Substring(fullRootPath.
Value
.Length);
GetReferenceAssemblyPaths.cs (1)
263
rootPath?.
Value
,
Unzip.cs (1)
190
ErrorUtilities.VerifyThrowInvalidOperation(fullDestinationPath.
Value
.StartsWith(fullDestinationDirectoryPath, FileUtilities.PathComparison), "Unzip.ZipSlipExploit", fullDestinationPath);
WriteCodeFragment.cs (2)
126
OutputFile = new TaskItem(Path.Combine(OutputDirectory.ItemSpec, Path.GetFileName(outputFilePath.
Value
)));
136
string lockedFileMessage = LockCheck.GetLockedFileMessage(outputFilePath.
Value
?? itemSpec);