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