21 instantiations of FilePath
dotnet (20)
BuildServer\BuildServerProvider.cs (1)
59var file = ReadRazorPidFile(new FilePath(path));
BuildServer\RazorPidFile.cs (1)
58return new RazorPidFile(path, processId, new FilePath(serverPath), pipeName);
Commands\Tool\Common\ToolManifestFinderExtensions.cs (1)
22return (new FilePath(explicitManifestFile), null);
Commands\Tool\Execute\ToolExecuteCommand.cs (3)
83var restoreResult = toolPackageRestorer.InstallPackage(toolManifestPackage, _configFile == null ? null : new FilePath(_configFile)); 108nugetConfig: _configFile != null ? new(_configFile) : null, 125nugetConfig: _configFile != null ? new(_configFile) : null,
Commands\Tool\Install\ToolInstallGlobalOrToolPathCommand.cs (2)
100var packageSourceLocation = new PackageSourceLocation(string.IsNullOrEmpty(configOption) ? null : new FilePath(configOption), sourceFeedOverrides: _source, additionalSourceFeeds: _addSource, basePath: _currentWorkingDirectory); 361configFile = new FilePath(_configFilePath);
Commands\Tool\Install\ToolInstallLocalCommand.cs (1)
213: new FilePath(_explicitManifestFile);
Commands\Tool\Install\ToolInstallLocalInstaller.cs (1)
39configFile = new FilePath(configFilePath);
Commands\Tool\Restore\ToolRestoreCommand.cs (2)
83configFile = new FilePath(_configFilePath); 186customManifestFileLocation = new FilePath(customFile);
Commands\Workload\InstallingWorkloadCommand.cs (1)
105new PackageSourceLocation(string.IsNullOrEmpty(configOption) ? null : new FilePath(configOption), sourceFeedOverrides: sourceOption);
Commands\Workload\Repair\WorkloadRepairCommand.cs (1)
38new PackageSourceLocation(string.IsNullOrEmpty(configOption) ? null : new FilePath(configOption), sourceFeedOverrides: sourceOption);
NugetPackageDownloader\NuGetPackageDownloader.cs (3)
283if ((!_shouldUsePackageSourceMapping && !_firstPartyNuGetPackageSigningVerifier.Verify(new FilePath(nupkgPath), out commandOutput)) || 284(_shouldUsePackageSourceMapping && !FirstPartyNuGetPackageSigningVerifier.NuGetVerify(new FilePath(nupkgPath), out commandOutput, _currentWorkingDirectory))) 422.Select(f => new FilePath(f));
Program.cs (1)
200IFileSentinel toolPathSentinel = new FileSentinel(new FilePath(toolPath));
ToolManifest\ToolManifestFinder.cs (1)
207return new FilePath(WriteManifestFile(manifestInsertFolder));
ToolPackage\LocalToolsResolverCache.cs (1)
152new FilePath(cacheRow.PathToExecutable));
Microsoft.DotNet.InternalAbstractions (1)
DirectoryPath.cs (1)
35return new FilePath(Path.Combine(Value, fileName));
96 references to FilePath
dotnet (92)
BuildServer\BuildServerProvider.cs (1)
83private RazorPidFile ReadRazorPidFile(FilePath path)
BuildServer\RazorPidFile.cs (5)
10internal class RazorPidFile(FilePath path, int processId, FilePath serverPath, string pipeName) 15public FilePath Path { get; } = path; 19public FilePath ServerPath { get; } = serverPath; 23public static RazorPidFile Read(FilePath path, IFileSystem fileSystem = null)
Commands\Tool\Common\ToolManifestFinderExtensions.cs (2)
15public static (FilePath? filePath, string warningMessage) ExplicitManifestOrFindManifestContainPackageId( 25IReadOnlyList<FilePath> manifestFilesContainPackageId;
Commands\Tool\Install\ProjectRestorer.cs (2)
21public void Restore(FilePath project, 76internal static void WriteLine(IReporter reporter, string line, FilePath project)
Commands\Tool\Install\ToolInstallGlobalOrToolPathCommand.cs (2)
356private FilePath? GetConfigFile() 358FilePath? configFile = null;
Commands\Tool\Install\ToolInstallLocalCommand.cs (5)
106FilePath manifestFile = GetManifestFilePath(); 108(FilePath? manifestFileOptional, string warningMessage) = 136public int InstallToolUpdate(ToolManifestPackage existingPackage, IToolPackage toolDownloadedPackage, FilePath manifestFile, PackageId packageId) 182public int InstallNewTool(FilePath manifestFile, PackageId packageId, VersionRange? versionRange) 209public FilePath GetManifestFilePath()
Commands\Tool\Install\ToolInstallLocalInstaller.cs (2)
26public IToolPackage Install(FilePath manifestFile, PackageId packageId, VersionRange? versionRange) 36FilePath? configFile = null;
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)
Commands\Tool\Restore\ToolPackageRestorer.cs (2)
48FilePath? configFile) 136private string CheckForNewerVersion(ToolManifestPackage package, FilePath? configFile)
Commands\Tool\Restore\ToolRestoreCommand.cs (4)
78FilePath? customManifestFileLocation = GetCustomManifestFileLocation(); 80FilePath? configFile = null; 180private FilePath? GetCustomManifestFileLocation() 183FilePath? customManifestFileLocation;
Commands\Tool\Uninstall\ToolUninstallLocalCommand.cs (2)
43(FilePath? manifestFileOptional, string warningMessage) = 51var manifestFile = manifestFileOptional.Value;
NugetPackageDownloader\FirstPartyNuGetPackageSigningVerifier.cs (3)
77public bool Verify(FilePath nupkgToVerify, out string commandOutput) 95internal bool IsFirstParty(FilePath nupkgToVerify) 145public static bool NuGetVerify(FilePath nupkgToVerify, out string commandOutput, string currentWorkingDirectory = null)
NugetPackageDownloader\IFirstPartyNuGetPackageSigningVerifier.cs (1)
12bool Verify(FilePath nupkgToVerify, out string commandOutput);
NugetPackageDownloader\NuGetPackageDownloader.cs (1)
406internal IEnumerable<FilePath> FindAllFilesNeedExecutablePermission(IEnumerable<string> files,
NugetPackageDownloader\PackageSourceLocation.cs (2)
14FilePath? nugetConfig = null, 33public FilePath? NugetConfig { get; }
ShellShim\AppHostShimMaker.cs (2)
20public void CreateApphostShellShim(FilePath entryPoint, FilePath shimPath)
ShellShim\IApphostShellShimMaker.cs (2)
12void CreateApphostShellShim(FilePath entryPoint, FilePath shimPath);
ShellShim\IShellShimRepository.cs (1)
14void CreateShim(ToolCommand toolCommand, IReadOnlyList<FilePath> packagedShims = null);
ShellShim\ShellShimRepository.cs (9)
24public void CreateShim(ToolCommand toolCommand, IReadOnlyList<FilePath> packagedShims = null) 51if (TryGetPackagedShim(packagedShims, toolCommand, out FilePath? packagedShim)) 109foreach (var file in GetShimFiles(toolCommand).Where(f => _fileSystem.File.Exists(f.Value))) 124foreach (var file in GetShimFiles(toolCommand).Where(f => _fileSystem.File.Exists(f.Value))) 173private IEnumerable<FilePath> GetShimFiles(ToolCommand toolCommand) 178private FilePath GetShimPath(ToolCommand toolCommand) 198IReadOnlyList<FilePath> packagedShims, 200out FilePath? packagedShim) 206FilePath[] candidatepackagedShim = [.. packagedShims.Where(s => string.Equals(Path.GetFileName(s.Value), Path.GetFileName(GetShimPath(toolCommand).Value)))];
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);
ToolManifest\IToolManifestFinder.cs (3)
13IReadOnlyCollection<ToolManifestPackage> Find(FilePath? filePath = null); 14FilePath FindFirst(bool createManifestFileOption = false); 15IReadOnlyList<FilePath> FindByPackageId(PackageId packageId);
ToolManifest\IToolManifestInspector.cs (2)
12IReadOnlyCollection<(ToolManifestPackage toolManifestPackage, FilePath SourceManifest)> Inspect( 13FilePath? filePath = null);
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)
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,
ToolPackage\IProjectRestorer.cs (1)
12void Restore(FilePath project,
ToolPackage\IToolPackage.cs (1)
28IReadOnlyList<FilePath> PackagedShims { get; }
ToolPackage\PackageLocation.cs (2)
12FilePath? nugetConfig = null, 18public FilePath? NugetConfig { get; } = nugetConfig;
ToolPackage\ToolCommand.cs (2)
14FilePath executable) 20public FilePath Executable { get; private set; } = executable;
ToolPackage\ToolPackageInstance.cs (3)
34public IReadOnlyList<FilePath> PackagedShims { get; private set; } 152private FilePath LockFileRelativePathToFullFilePath(string lockFileRelativePath, LockFileTargetLibrary library) 224var toolConfigurationPath =
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)