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);
61 references to Value
Microsoft.Build (2)
BackEnd\Components\RequestBuilder\RequestBuilder.cs (2)
910
entryToComplete.RequestConfiguration.SavedCurrentDirectory = entryToComplete.TaskEnvironment.ProjectDirectory.
Value
;
1401
_requestEntry.RequestConfiguration.SavedCurrentDirectory = _requestEntry.TaskEnvironment.ProjectDirectory.
Value
;
Microsoft.Build.CommandLine.UnitTests (1)
MSBuildMultithreaded_Tests.cs (1)
53
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 (36)
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 (15)
112
Value = Path.Combine(basePath.
Value
, path);
120
public static implicit operator string(AbsolutePath path) => path.
Value
;
144
if (string.IsNullOrEmpty(
Value
))
160
bool hasRelativeSegment =
Value
.Contains("/.") ||
Value
.Contains("\\.");
164
bool needsSeparatorNormalization = NativeMethods.IsWindows &&
Value
.IndexOf(Path.AltDirectorySeparatorChar) >= 0;
175
hasConsecutiveSeparators =
Value
.Length > 3 &&
Value
.IndexOf("\\\\", 1, StringComparison.Ordinal) >= 0;
179
hasConsecutiveSeparators =
Value
.Contains("//");
190
return new AbsolutePath(Path.GetFullPath(
Value
), OriginalValue, ignoreRootedCheck: true);
221
public bool Equals(AbsolutePath other) => s_pathComparer.Equals(
Value
, other.
Value
);
227
public override int GetHashCode() =>
Value
is null ? 0 : s_pathComparer.GetHashCode(
Value
);
233
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);
280
result.
Value
.ShouldBe(systemResult);
Microsoft.Build.Tasks.Core (6)
AssignTargetPath.cs (4)
132
if (itemSpecFullFileNamePath.
Value
.StartsWith(fullRootPath.
Value
, FileUtilities.PathComparison))
135
targetPath = itemSpecFullFileNamePath.
Value
.Substring(fullRootPath.
Value
.Length);
WriteCodeFragment.cs (2)
126
OutputFile = new TaskItem(Path.Combine(OutputDirectory.ItemSpec, Path.GetFileName(outputFilePath.
Value
)));
136
string lockedFileMessage = LockCheck.GetLockedFileMessage(outputFilePath.
Value
?? itemSpec);