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