8 instantiations of FilePath
dotnet-aot (7)
parent\dotnet\Commands\Tool\Common\ToolManifestFinderExtensions.cs (1)
22return (new FilePath(explicitManifestFile), null);
parent\dotnet\FirstRunExperience.cs (1)
65IFileSentinel toolPathSentinel = new FileSentinel(new FilePath(toolPath));
parent\dotnet\NugetPackageDownloader\NuGetPackageDownloader.cs (3)
281if ((!_shouldUsePackageSourceMapping && !_firstPartyNuGetPackageSigningVerifier.Verify(new FilePath(nupkgPath), out commandOutput)) || 282(_shouldUsePackageSourceMapping && !FirstPartyNuGetPackageSigningVerifier.NuGetVerify(new FilePath(nupkgPath), out commandOutput, _currentWorkingDirectory))) 430.Select(f => new FilePath(f));
parent\dotnet\ToolManifest\ToolManifestFinder.cs (1)
207return new FilePath(WriteManifestFile(manifestInsertFolder));
parent\dotnet\ToolPackage\LocalToolsResolverCache.cs (1)
152new FilePath(cacheRow.PathToExecutable));
Microsoft.DotNet.InternalAbstractions (1)
DirectoryPath.cs (1)
35return new FilePath(Path.Combine(Value, fileName));
52 references to FilePath
dotnet-aot (48)
parent\dotnet\Commands\Tool\Common\ToolManifestFinderExtensions.cs (2)
15public static (FilePath? filePath, string warningMessage) ExplicitManifestOrFindManifestContainPackageId( 25IReadOnlyList<FilePath> manifestFilesContainPackageId;
parent\dotnet\Commands\Tool\List\ToolListLocalCommand.cs (4)
37IEnumerable<(ToolManifestPackage package, FilePath path)> packages = _toolManifestInspector.Inspect(); 62private void PrintTable(IEnumerable<(ToolManifestPackage toolManifestPackage, FilePath SourceManifest)> packageEnumerable) 64var table = new PrintableTable<(ToolManifestPackage toolManifestPackage, FilePath SourceManifest)>(); 80private void PrintJson(IEnumerable<(ToolManifestPackage toolManifestPackage, FilePath SourceManifest)> packageEnumerable)
parent\dotnet\Commands\Tool\Uninstall\ToolUninstallLocalCommand.cs (2)
43(FilePath? manifestFileOptional, string warningMessage) = 51var manifestFile = manifestFileOptional.Value;
parent\dotnet\NugetPackageDownloader\FirstPartyNuGetPackageSigningVerifier.cs (3)
78public bool Verify(FilePath nupkgToVerify, out string commandOutput) 96internal bool IsFirstParty(FilePath nupkgToVerify) 146public static bool NuGetVerify(FilePath nupkgToVerify, out string commandOutput, string currentWorkingDirectory = null)
parent\dotnet\NugetPackageDownloader\IFirstPartyNuGetPackageSigningVerifier.cs (1)
12bool Verify(FilePath nupkgToVerify, out string commandOutput);
parent\dotnet\NugetPackageDownloader\NuGetPackageDownloader.cs (1)
414internal IEnumerable<FilePath> FindAllFilesNeedExecutablePermission(IEnumerable<string> files,
parent\dotnet\NugetPackageDownloader\PackageSourceLocation.cs (2)
14FilePath? nugetConfig = null, 33public FilePath? NugetConfig { get; }
parent\dotnet\ToolManifest\IToolManifestEditor.cs (3)
15void Add(FilePath manifest, PackageId packageId, NuGetVersion nuGetVersion, ToolCommandName[] toolCommandNames, bool rollForward = false); 16void Remove(FilePath manifest, PackageId packageId); 17void Edit(FilePath manifest, PackageId packageId, NuGetVersion newNuGetVersion, ToolCommandName[] newToolCommandNames);
parent\dotnet\ToolManifest\IToolManifestFinder.cs (3)
13IReadOnlyCollection<ToolManifestPackage> Find(FilePath? filePath = null); 14FilePath FindFirst(bool createManifestFileOption = false); 15IReadOnlyList<FilePath> FindByPackageId(PackageId packageId);
parent\dotnet\ToolManifest\IToolManifestInspector.cs (2)
12IReadOnlyCollection<(ToolManifestPackage toolManifestPackage, FilePath SourceManifest)> Inspect( 13FilePath? filePath = null);
parent\dotnet\ToolManifest\ToolManifestEditor.cs (6)
29FilePath manifest, 80FilePath manifest, 113Read(FilePath manifest, DirectoryPath correspondingDirectory) 133private SerializableLocalToolsManifest DeserializeLocalToolsManifest(FilePath possibleManifest) 225FilePath path, 403public void Remove(FilePath manifest, PackageId packageId)
parent\dotnet\ToolManifest\ToolManifestFinder.cs (17)
34public IReadOnlyCollection<ToolManifestPackage> Find(FilePath? filePath = null) 36IEnumerable<(FilePath manifestfile, DirectoryPath _)> allPossibleManifests = 50public IReadOnlyCollection<(ToolManifestPackage toolManifestPackage, FilePath SourceManifest)> Inspect( 51FilePath? filePath = null) 53IEnumerable<(FilePath manifestfile, DirectoryPath _)> allPossibleManifests = 65IEnumerable<(FilePath manifestfile, DirectoryPath _)> allPossibleManifests, 66out List<(ToolManifestPackage toolManifestPackage, FilePath SourceManifest)> toolManifestPackageAndSource) 70foreach ((FilePath possibleManifest, DirectoryPath correspondingDirectory) in allPossibleManifests) 103foreach ((FilePath possibleManifest, DirectoryPath correspondingDirectory) in 135foreach ((FilePath possibleManifest, DirectoryPath correspondingDirectory) in 160private IEnumerable<(FilePath manifestfile, DirectoryPath manifestFileFirstEffectDirectory)> 168var tryManifest = currentSearchDirectory.Value.WithFile(ManifestFilenameConvention); 193public FilePath FindFirst(bool createIfNotFound = false) 195foreach ((FilePath possibleManifest, DirectoryPath _) in EnumerateDefaultAllPossibleManifests()) 262public IReadOnlyList<FilePath> FindByPackageId(PackageId packageId) 264var result = new List<FilePath>(); 267foreach ((FilePath possibleManifest,
parent\dotnet\ToolPackage\ToolCommand.cs (2)
14FilePath executable) 20public FilePath Executable { get; private set; } = executable;
Microsoft.DotNet.Configurer (3)
FileSentinel.cs (3)
10private readonly FilePath _file; 13public FileSentinel(FilePath file) : 18internal FileSentinel(FilePath file, IFileSystem? fileSystem)
Microsoft.DotNet.InternalAbstractions (1)
DirectoryPath.cs (1)
33public FilePath WithFile(string fileName)