1 write to Value
Microsoft.DotNet.InternalAbstractions (1)
FilePath.cs (1)
21Value = value;
74 references to Value
dotnet (70)
BuildServer\BuildServerProvider.cs (1)
94path.Value,
BuildServer\RazorPidFile.cs (1)
28path.Value,
BuildServer\RazorServer.cs (4)
27if (!_fileSystem.File.Exists(PidFile.ServerPath.Value)) 39PidFile.ServerPath.Value, 66if (_fileSystem.File.Exists(PidFile.Path.Value)) 68_fileSystem.File.Delete(PidFile.Path.Value);
CommandFactory\CommandResolution\LocalToolsCommandResolver.cs (2)
86if (!_fileSystem.File.Exists(toolCommand.Executable.Value)) 92return ToolCommandSpecCreator.CreateToolCommandSpec(toolCommand.Name.Value, toolCommand.Executable.Value, toolCommand.Runner,
Commands\Tool\Execute\ToolExecuteCommand.cs (1)
143var commandSpec = ToolCommandSpecCreator.CreateToolCommandSpec(toolPackage.Command.Name.Value, toolPackage.Command.Executable.Value, toolPackage.Command.Runner, _allowRollForward, _forwardArguments);
Commands\Tool\Install\ProjectRestorer.cs (4)
25List<string> argsToPassToRestore = [project.Value]; 29argsToPassToRestore.Add(packageLocation.NugetConfig.Value.Value); 81if (line.StartsWith($"{project.Value} : ", StringComparison.OrdinalIgnoreCase)) 83line = line.Substring(project.Value.Length + 3);
Commands\Tool\Install\ToolInstallLocalCommand.cs (4)
146manifestFile.Value) 157manifestFile.Value)); 172manifestFile.Value).Green()); 204manifestFile.Value).Green());
Commands\Tool\List\ToolListLocalCommand.cs (2)
76p => p.SourceManifest.Value); 89Manifest = p.SourceManifest.Value
Commands\Tool\Restore\ToolPackageRestorer.cs (1)
133&& _fileSystem.File.Exists(toolCommand.Executable.Value);
Commands\Tool\Uninstall\ToolUninstallLocalCommand.cs (1)
64manifestFile.Value).Green());
NugetPackageDownloader\FirstPartyNuGetPackageSigningVerifier.cs (2)
99using (var packageReader = new PackageArchiveReader(nupkgToVerify.Value)) 147var args = new[] { "verify", "--all", nupkgToVerify.Value };
NugetPackageDownloader\NuGetPackageDownloader.cs (1)
496string nugetConfigFileName = Path.GetFileName(packageSourceLocation.NugetConfig.Value.Value);
ShellShim\AppHostShimMaker.cs (2)
32var appHostDestinationFilePath = Path.GetFullPath(shimPath.Value); 33string entryPointFullPath = Path.GetFullPath(entryPoint.Value);
ShellShim\ShellShimRepository.cs (14)
26if (string.IsNullOrEmpty(toolCommand.Executable.Value)) 53_fileSystem.File.Copy(packagedShim.Value.Value, GetShimPath(toolCommand).Value); 54_filePermissionSetter.SetUserExecutionPermission(GetShimPath(toolCommand).Value); 65var shimPath = GetShimPath(toolCommand).Value; 66string relativePathToExe = Path.GetRelativePath(_shimsDirectory.Value, toolCommand.Executable.Value); 109foreach (var file in GetShimFiles(toolCommand).Where(f => _fileSystem.File.Exists(f.Value))) 111File.Delete(file.Value); 124foreach (var file in GetShimFiles(toolCommand).Where(f => _fileSystem.File.Exists(f.Value))) 127FileAccessRetrier.RetryOnMoveAccessFailure(() => _fileSystem.File.Move(file.Value, tempPath)); 128files[file.Value] = tempPath; 170return GetShimFiles(toolCommand).Any(p => _fileSystem.File.Exists(p.Value)); 206FilePath[] candidatepackagedShim = [.. packagedShims.Where(s => string.Equals(Path.GetFileName(s.Value), Path.GetFileName(GetShimPath(toolCommand).Value)))];
ToolManifest\ToolManifestEditor.cs (12)
53_fileSystem.File.WriteAllText(manifest.Value, deserializedManifest.ToJson()); 61manifest.Value, 76_fileSystem.File.WriteAllText(manifest.Value, deserializedManifest.ToJson()); 106throw new ArgumentException($"Manifest {manifest.Value} does not contain package id '{packageId}'."); 109_fileSystem.File.WriteAllText(manifest.Value, deserializedManifest.ToJson()); 115if (_dangerousFileDetector.IsDangerous(manifest.Value)) 118string.Format(CliStrings.ManifestHasMarkOfTheWeb, manifest.Value)); 138using (Stream jsonStream = _fileSystem.File.OpenRead(possibleManifest.Value)) 219possibleManifest.Value, e.Message)); 235errors.Add(string.Format(CliStrings.ManifestMissingIsRoot, path.Value)); 302path.Value, 431manifest.Value,
ToolManifest\ToolManifestFinder.cs (9)
44throw new ToolManifestCannotBeFoundException(string.Format(CliStrings.CannotFindAManifestFile, string.Join(Environment.NewLine, allPossibleManifests.Select(f => "\t" + f.manifestfile.Value)))); 72if (!_fileSystem.File.Exists(possibleManifest.Value)) 106if (!_fileSystem.File.Exists(possibleManifest.Value)) 138if (!_fileSystem.File.Exists(possibleManifest.Value)) 197if (_fileSystem.File.Exists(possibleManifest.Value)) 210throw new ToolManifestCannotBeFoundException(string.Format(CliStrings.CannotFindAManifestFile, string.Join(Environment.NewLine, EnumerateDefaultAllPossibleManifests().Select(f => "\t" + f.manifestfile.Value)))); 233|| _fileSystem.File.Exists(currentSearchDirectory.Value.WithFile(".git").Value)) 279if (_fileSystem.File.Exists(possibleManifest.Value)) 297throw new ToolManifestCannotBeFoundException(string.Format(CliStrings.CannotFindAManifestFile, string.Join(Environment.NewLine, EnumerateDefaultAllPossibleManifests().Select(f => "\t" + f.manifestfile.Value))));
ToolPackage\LocalToolsResolverCache.cs (2)
110return _cacheVersionedDirectory.WithFile(packageId.ToString()).Value; 129PathToExecutable = toolCommand.Executable.Value
ToolPackage\ToolCommand.cs (1)
24return $"ToolCommandName: {Name.Value} - Runner: {Runner} - FilePath: {Executable.Value}";
ToolPackage\ToolPackageDownloaderBase.cs (1)
383var runtimeConfigFilePath = Path.ChangeExtension(toolPackageInstance.Command.Executable.Value, ".runtimeconfig.json");
ToolPackage\ToolPackageInstance.cs (5)
55bool usingRidSpecificPackage = _fileSystem.File.Exists(assetsJsonParentDirectory.WithFile(RidSpecificPackageAssetsFileName).Value); 60resolvedAssetsFileNameFullPath = assetsJsonParentDirectory.WithFile(RidSpecificPackageAssetsFileName).Value; 64resolvedAssetsFileNameFullPath = assetsJsonParentDirectory.WithFile(AssetsFileName).Value; 166var lockFile = new LockFileFormat().Read(assetsJsonParentDirectory.WithFile(AssetsFileName).Value); 231var configuration = ToolConfigurationDeserializer.Deserialize(toolConfigurationPath.Value, fileSystem);
Microsoft.DotNet.Configurer (2)
FileSentinel.cs (2)
26return _fileSystem.File.Exists(_file.Value); 31_fileSystem.CreateIfNotExists(_file.Value);
Microsoft.DotNet.InternalAbstractions (2)
FilePath.cs (2)
26return Value; 31return new DirectoryPath(Path.GetDirectoryName(Value)!);