84 references to 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)
70var restoreResult = toolPackageRestorer.InstallPackage(toolManifestPackage, _configFile == null ? null : new FilePath(_configFile)); 87nugetConfig: _configFile != null ? new(_configFile) : null, 118nugetConfig: _configFile != null ? new(_configFile) : null,
Commands\Tool\Install\ToolInstallGlobalOrToolPathCommand.cs (2)
90var packageSourceLocation = new PackageSourceLocation(string.IsNullOrEmpty(configOption) ? null : new FilePath(configOption), additionalSourceFeeds: sourceOption, basePath: _currentWorkingDirectory); 323configFile = new FilePath(_configFilePath);
Commands\Tool\Install\ToolInstallLocalCommand.cs (1)
199: new FilePath(_explicitManifestFile);
Commands\Tool\Install\ToolInstallLocalInstaller.cs (1)
64configFile = new FilePath(_configFilePath);
Commands\Tool\Restore\ToolRestoreCommand.cs (2)
85configFile = new FilePath(_configFilePath); 172customManifestFileLocation = new FilePath(customFile);
Commands\Workload\InstallingWorkloadCommand.cs (1)
107new 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)
188if ((!_shouldUsePackageSourceMapping && !_firstPartyNuGetPackageSigningVerifier.Verify(new FilePath(nupkgPath), out commandOutput)) || 189(_shouldUsePackageSourceMapping && !FirstPartyNuGetPackageSigningVerifier.NuGetVerify(new FilePath(nupkgPath), out commandOutput, _currentWorkingDirectory))) 326.Select(f => new FilePath(f));
Program.cs (1)
145IFileSentinel toolPathSentinel = new FileSentinel(new FilePath(Path.Combine(CliFolderPathCalculator.DotnetUserProfileFolderPath, ToolPathSentinelFileName)));
ToolManifest\ToolManifestFinder.cs (1)
207return new FilePath(WriteManifestFile(manifestInsertFolder));
ToolPackage\LocalToolsResolverCache.cs (1)
151new FilePath(cacheRow.PathToExecutable));
dotnet.Tests (55)
BuildServerTests\RazorServerTests.cs (6)
42path: new FilePath(pidFilePath), 44serverPath: new FilePath(serverPath), 81path: new FilePath(pidFilePath), 83serverPath: new FilePath(serverPath), 115path: new FilePath(pidFilePath), 117serverPath: new FilePath(serverPath),
CommandTests\BuildServer\Shutdown\BuildServerShutdownCommandTests.cs (1)
180var pidFile = RazorPidFile.Read(new FilePath(files.First()));
CommandTests\Tool\Install\ToolInstallGlobalOrToolPathCommandTests.cs (1)
121nugetConfig: new FilePath(Path.Combine(testAsset.Path, "NuGet.config")),
CommandTests\Tool\Install\ToolInstallLocalCommandTests.cs (2)
196_toolManifestFinder.Find(new FilePath(explicitManifestFilePath)).Should().HaveCount(1); 297new FilePath(_manifestFilePath),
CommandTests\Tool\List\ToolListGlobalOrToolPathCommandTests.cs (13)
117new ToolCommand(new ToolCommandName("foo"), "dotnet", new FilePath("tool")) 138new ToolCommand(new ToolCommandName("foo"), "dotnet", new FilePath("tool")) 143new ToolCommand(new ToolCommandName("bar"), "dotnet", new FilePath("tool")) 148new ToolCommand(new ToolCommandName("fancy-foo"), "dotnet", new FilePath("tool")) 170new ToolCommand(new ToolCommandName("foo"), "dotnet", new FilePath("tool")) 175new ToolCommand(new ToolCommandName("bar"), "dotnet", new FilePath("tool")) 210new ToolCommand(new ToolCommandName("foo"), "dotnet", new FilePath("tool"))) 230new ToolCommand(new ToolCommandName("foo"), "dotnet", new FilePath("tool")) 236new ToolCommand(new ToolCommandName("fancy-foo"), "dotnet", new FilePath("tool")) 272new ToolCommand(new ToolCommandName("foo"), "dotnet", new FilePath("tool")) 277new ToolCommand(new ToolCommandName("bar"), "dotnet", new FilePath("tool")) 282new ToolCommand(new ToolCommandName("fancy-foo"), "dotnet", new FilePath("tool")) 303new ToolCommand(new ToolCommandName("foo"), "dotnet", new FilePath("tool"))
CommandTests\Tool\List\ToolListLocalCommandTests.cs (2)
41false), new FilePath(_testManifestPath)), 47false), new FilePath(_testManifestPath))
CommandTests\Tool\Update\ToolUpdateLocalCommandTests.cs (1)
268AssertUpdateSuccess(new FilePath(explicitManifestFilePath));
CommandTests\Workload\Install\GivenFileBasedWorkloadInstall.cs (1)
212var packageSource = new PackageSourceLocation(new FilePath("mock-file"));
ShellShimTests\AppHostShellShimMakerTests.cs (2)
41new FilePath(Path.GetFullPath(Path.Combine("WpfBinaryTestAssets", "testwpf.dll"))), 42new FilePath(shimPath));
ShellShimTests\ShellShimRepositoryTests.cs (10)
152var command = new ToolCommand(new ToolCommandName(shellCommandName), "dotnet", new FilePath("dummy.dll")); 241var command = new ToolCommand(new ToolCommandName(shellCommandName), "dotnet", new FilePath("dummyExe")); 376var command = new ToolCommand(new ToolCommandName(shellCommandName), "dotnet", new FilePath("dummy.dll")); 380new[] { new FilePath(dummyShimPath) }); 404FilePath[] filePaths = new[] { new FilePath(dummyShimPath), new FilePath("path" + dummyShimPath) }; 406var command = new ToolCommand(new ToolCommandName(shellCommandName), "dotnet", new FilePath("dummy.dll")); 410new[] { new FilePath(dummyShimPath), new FilePath("path" + dummyShimPath) }); 512return new FilePath(Path.Combine(outputDirectory.FullName, $"{testAppName}.dll"));
ToolManifestTests\ToolManifestEditorTests.cs (11)
34toolManifestFileEditor.Add(new FilePath(manifestFile), 77toolManifestFileEditor.Add(new FilePath(manifestFile), 107Action a = () => toolManifestFileEditor.Add(new FilePath(manifestFile), 135Action a = () => toolManifestFileEditor.Add(new FilePath(manifestFile), 155Action a = () => toolManifestFileEditor.Add(new FilePath(manifestFile), 178toolManifestFileEditor.Read(new FilePath(manifestFile), new DirectoryPath(_testDirectoryRoot)); 191toolManifestFileEditor.Remove(new FilePath(manifestFile), 219new FilePath(manifestFile), 238new FilePath(manifestFile), 258Action a = () => toolManifestFileEditor.Edit(new FilePath(manifestFile), 276toolManifestFileEditor.Edit(new FilePath(manifestFile),
ToolManifestTests\ToolManifestFinderTests.cs (5)
230toolManifest.Find(new FilePath(Path.Combine(_testDirectoryRoot, customFileName))); 255Action a = () => toolManifest.Find(new FilePath(Path.Combine(_testDirectoryRoot, "non-exists"))); 410new FilePath(manifestFileInSubDirectory), 411new FilePath(manifestFileInParentDirectory) 418new FilePath(manifestFileInSubDirectory)
Microsoft.DotNet.InternalAbstractions (1)
DirectoryPath.cs (1)
35return new FilePath(Path.Combine(Value, fileName));
Microsoft.DotNet.PackageInstall.Tests (8)
NuGetPackageInstallerTests.cs (4)
330package.IsFirstParty(new FilePath(iosSamplePackage)).Should().BeTrue(); 331package.IsFirstParty(new FilePath(androidSamplePackage)).Should().BeTrue(); 332package.IsFirstParty(new FilePath(mauiSamplePackage)).Should().BeTrue(); 388new(Path.GetFullPath(Path.Combine(tempPathForNugetConfigWithWhiteSpace, nugetConfigName)));
ToolPackageDownloaderTests.cs (2)
729var nugetConfigPath = new FilePath(Path.Combine(root.Path, "NuGet.config")); 886var nugetConfigPath = new FilePath(Path.Combine(root.Value, "NuGet.config"));
ToolPackageInstallerNugetCacheTests.cs (1)
160return new FilePath(Path.GetFullPath(Path.Combine(tempPathForNugetConfigWithWhiteSpace, nugetConfigName)));
ToolPackageUninstallerTests.cs (1)
87[TestPackageId] = new FilePath[] { new FilePath("path/demo.exe") }