3 writes to Value
Microsoft.Build.Framework (3)
PathHelpers\AbsolutePath.cs (3)
49
Value
= path;
76
Value
= path;
121
Value
= combined;
86 references to Value
Microsoft.Build (2)
BackEnd\Components\RequestBuilder\RequestBuilder.cs (2)
912
entryToComplete.RequestConfiguration.SavedCurrentDirectory = entryToComplete.TaskEnvironment.ProjectDirectory.
Value
;
1396
_requestEntry.RequestConfiguration.SavedCurrentDirectory = _requestEntry.TaskEnvironment.ProjectDirectory.
Value
;
Microsoft.Build.Framework (30)
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)
36
set => NativeMethods.SetCurrentDirectory(value.
Value
);
MultiThreadedTaskEnvironmentDriver.cs (2)
65
FileUtilities.CurrentThreadWorkingDirectory = _currentDirectory.
Value
;
116
WorkingDirectory = ProjectDirectory.
Value
PathHelpers\AbsolutePath.cs (9)
112
string combined = Path.Combine(basePath.
Value
, path);
118
combined = MakeFullyQualifiedRelativeToBasePath(combined, basePath.
Value
);
167
public static implicit operator string(AbsolutePath path) => path.
Value
;
191
return new AbsolutePath(System.IO.Path.GetFullPath(
Value
), OriginalValue, ignoreRootedCheck: true);
222
public bool Equals(AbsolutePath other) => s_pathComparer.Equals(
Value
, other.
Value
);
228
public override int GetHashCode() =>
Value
is null ? 0 : s_pathComparer.GetHashCode(
Value
);
234
public override string ToString() =>
Value
;
Microsoft.Build.Tasks.Core (43)
AssemblyDependency\AssemblyFoldersFromConfig\AssemblyFoldersFromConfigCache.cs (1)
52
.Select(assemblyFolder => taskEnvironment.GetAbsolutePath(assemblyFolder.DirectoryPath).
Value
)
AssemblyDependency\AssemblyFoldersFromConfig\AssemblyFoldersFromConfigResolver.cs (2)
188
? taskEnvironment.ProjectDirectory.
Value
191
: taskEnvironment.GetAbsolutePath(assemblyFolder.DirectoryPath).
Value
;
AssemblyDependency\HintPathResolver.cs (1)
48
string fullHintPath = taskEnvironment.GetAbsolutePath(hintPath).
Value
;
AssemblyDependency\Node\RarNodeExecuteRequest.cs (1)
31
_projectDirectory = rar.TaskEnvironment.ProjectDirectory.
Value
;
AssemblyDependency\RawFilenameResolver.cs (1)
53
: taskEnvironment.GetAbsolutePath(rawFileNameCandidate).
Value
;
AssemblyDependency\Reference.cs (1)
945
if (IsUnderDirectory(fullPath, frameworkPath.
Value
))
AssemblyDependency\ReferenceTable.cs (1)
1370
resolvedPath = FileUtilities.FixFilePath(_taskEnvironment.GetAbsolutePath(resolvedPath).GetCanonicalForm()).
Value
;
AssemblyDependency\ResolveAssemblyReference.cs (8)
2252
if (_assemblyInformationCacheOutputPath.
Value
is not null)
2256
else if (_stateFile.
Value
is not null && (_cache.IsDirty || _cache.instanceLocalOutgoingFileStateCache.Count < _cache.instanceLocalFileStateCache.Count))
2271
if (_appConfigFile.
Value
is not null)
2274
appConfig.Load(_appConfigFile.
Value
);
2782
if (_stateFile.
Value
is not null && fileExists(_stateFile.
Value
))
3434
if (_stateFile.
Value
is not null && FileUtilities.FileExistsNoThrow(_stateFile.
Value
))
AssignTargetPath.cs (4)
134
if (itemSpecFullFileNamePath.
Value
.StartsWith(fullRootPath.
Value
, FileUtilities.PathComparison))
137
targetPath = itemSpecFullFileNamePath.
Value
.Substring(fullRootPath.
Value
.Length);
BootstrapperUtil\Util.cs (1)
119
string projectDirectory = taskEnvironment.ProjectDirectory.
Value
;
Exec.cs (3)
200
var encoding = EncodingUtilities.BatchFileEncoding(Command + _workingDirectory.
Value
, UseUtf8Encoding);
248
sw.WriteLine("pushd " + _workingDirectory.
Value
);
477
_workingDirectory.
Value
);
GetReferenceAssemblyPaths.cs (1)
263
rootPath?.
Value
,
InstalledSDKResolver.cs (1)
56
string sdkDirectory = taskEnvironment.GetAbsolutePath(resolvedSDK.ItemSpec).
Value
;
ManifestUtil\LauncherBuilder.cs (7)
60
if (String.IsNullOrEmpty(outputPath.
Value
))
71
Path.Combine(outputPath.
Value
, launcherFilename),
100
if (!FileSystems.Default.FileExists(launcher.
Value
))
108
EnsureFolderExists(Path.GetDirectoryName(outputExe.
Value
));
109
File.Copy(launcher.
Value
, outputExe.
Value
, true);
110
ClearReadOnlyAttribute(outputExe.
Value
);
RedistList.cs (2)
692
string path = assemblyTableInfo.Path.
Value
;
1010
internal string Descriptor => _descriptor ?? (_descriptor = Path.
Value
+ FrameworkDirectory);
SystemState.cs (1)
596
stateFilePath = stateFileAbsolutePath.
Value
;
TaskEnvironmentExtensions.cs (4)
32
log?.LogMessageFromResources(MessageImportance.Low, "General.FailedToCanonicalizePath", absolutePath.
Value
, e.Message);
66
=> string.IsNullOrEmpty(path) ? path : taskEnvironment.GetAbsolutePath(path).
Value
;
69
/// Converts an array of <see cref="AbsolutePath"/> to a string array of <see cref="AbsolutePath.
Value
"/>s.
82
result[i] = paths[i].
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);
Microsoft.NET.Build.Tasks (11)
DependencyContextBuilder.cs (1)
842
=> CreateRuntimeFile(path, fullPath.
Value
, localPath);
GenerateBundle.cs (2)
63
return outputPath.
Value
;
70
: TaskEnvironment.GetAbsolutePath(sourcePath).
Value
;
ResolveAppHosts.cs (1)
299
appHostPackPathAbsolute = TaskEnvironment.GetAbsolutePath(appHostPackPath).
Value
;
ResolveTargetingPackAssets.cs (5)
155
if (string.IsNullOrEmpty(targetingPackRoot.
Value
) || !Directory.Exists(targetingPackRoot))
630
builder.AppendLine(Path.
Value
);
721
keyBuilder.AppendLine(FrameworkListPath.
Value
);
723
keyBuilder.AppendLine(TargetingPackRoot.
Value
);
725
keyBuilder.AppendLine(TargetingPackDllFolder.
Value
);
src\sdk\src\Tasks\Common\FileUtilities.cs (2)
26
public static Version? GetFileVersion(AbsolutePath sourcePath) => GetFileVersion(sourcePath.
Value
);
36
public static Version? TryGetAssemblyVersion(AbsolutePath sourcePath) => TryGetAssemblyVersion(sourcePath.
Value
);