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