46 references to WithFile
dotnet (13)
ShellShim\ShellShimRepository.cs (3)
184
return _shimsDirectory.
WithFile
(toolCommand.Name.Value + ".exe");
188
return _shimsDirectory.
WithFile
(toolCommand.Name.Value + ".cmd");
193
return _shimsDirectory.
WithFile
(toolCommand.Name.Value);
ToolManifest\ToolManifestFinder.cs (3)
168
var tryManifest = currentSearchDirectory.Value.
WithFile
(ManifestFilenameConvention);
169
yield return (currentSearchDotConfigDirectory.
WithFile
(ManifestFilenameConvention),
233
|| _fileSystem.File.Exists(currentSearchDirectory.Value.
WithFile
(".git").Value))
ToolPackage\LocalToolsResolverCache.cs (1)
109
return _cacheVersionedDirectory.
WithFile
(packageId.ToString()).Value;
ToolPackage\ToolPackageInstance.cs (6)
55
bool usingRidSpecificPackage = _fileSystem.File.Exists(assetsJsonParentDirectory.
WithFile
(RidSpecificPackageAssetsFileName).Value);
60
resolvedAssetsFileNameFullPath = assetsJsonParentDirectory.
WithFile
(RidSpecificPackageAssetsFileName).Value;
64
resolvedAssetsFileNameFullPath = assetsJsonParentDirectory.
WithFile
(AssetsFileName).Value;
158
.
WithFile
(lockFileRelativePath);
166
var lockFile = new LockFileFormat().Read(assetsJsonParentDirectory.
WithFile
(AssetsFileName).Value);
188
.
WithFile
(dotnetToolSettings.Path);
dotnet.Tests (5)
CommandFactoryTests\GivenALocalToolsCommandResolver.cs (4)
92
FilePath fakeExecutable = _nugetGlobalPackagesFolder.
WithFile
("fakeExecutable.dll");
125
var fakeExecutable = _nugetGlobalPackagesFolder.
WithFile
("fakeExecutable.dll");
188
var fakeExecutableA = _nugetGlobalPackagesFolder.
WithFile
("fakeExecutable-a.dll");
189
var fakeExecutableDotnetA = _nugetGlobalPackagesFolder.
WithFile
("fakeExecutable-a.dll");
CommandTests\Tool\Run\ToolRunCommandTests.cs (1)
78
FilePath fakeExecutable = _nugetGlobalPackagesFolder.
WithFile
("fakeExecutable.dll");
Microsoft.DotNet.PackageInstall.Tests (23)
LocalToolsResolverCacheTests.cs (11)
47
new ToolCommand(new ToolCommandName("tool1"), "dotnet", nuGetGlobalPackagesFolder.
WithFile
("tool1.dll")),
48
new ToolCommand(new ToolCommandName("tool2"), "dotnet", nuGetGlobalPackagesFolder.
WithFile
("tool2.dll"))
87
new ToolCommand(new ToolCommandName("tool1"), "dotnet", nuGetGlobalPackagesFolder.
WithFile
("tool1.dll")),
88
new ToolCommand(new ToolCommandName("tool2"), "dotnet", nuGetGlobalPackagesFolder.
WithFile
("tool2.dll"))
121
new ToolCommand(new ToolCommandName("tool1"), "dotnet", nuGetGlobalPackagesFolder.
WithFile
("tool1.dll")),
122
new ToolCommand(new ToolCommandName("tool2"), "dotnet", nuGetGlobalPackagesFolder.
WithFile
("tool2.dll"))
161
new ToolCommand(new ToolCommandName("tool1"), "dotnet", nuGetGlobalPackagesFolder.
WithFile
("tool1.dll")),
167
new ToolCommand(new ToolCommandName("tool1"), "dotnet", nuGetGlobalPackagesFolder.
WithFile
("tool1new.dll")),
168
new ToolCommand(new ToolCommandName("tool2"), "dotnet", nuGetGlobalPackagesFolder.
WithFile
("tool2new.dll")),
243
new ToolCommand(new ToolCommandName("tool1"), "dotnet", nuGetGlobalPackagesFolder.
WithFile
("tool1.dll")),
300
new ToolCommand(new ToolCommandName("tool1"), "dotnet", nuGetGlobalPackagesFolder.
WithFile
("tool1.dll")),
ToolPackageDownloaderTests.cs (12)
50
var package = downloader.InstallPackage(new PackageLocation(nugetConfig: testDir.
WithFile
("NuGet.config")),
77
package = downloader.InstallPackage(new PackageLocation(nugetConfig: testDir.
WithFile
("NuGet.config")),
102
var package = downloader.InstallPackage(new PackageLocation(nugetConfig: testDir.
WithFile
("NuGet.config")),
124
.
WithFile
("project.assets.json").Value;
168
new PackageLocation(nugetConfig: testDir.
WithFile
("NuGet.config")),
192
var package = downloader.GetNuGetVersion(new PackageLocation(nugetConfig: testDir.
WithFile
("NuGet.config"),
211
new PackageLocation(nugetConfig: testDir.
WithFile
("NuGet.config")),
232
var package = downloader.InstallPackage(new PackageLocation(nugetConfig: testDir.
WithFile
("NuGet.config")),
341
var package = downloader.InstallPackage(new PackageLocation(nugetConfig: testDir.
WithFile
("NuGet.config"),
706
var package = downloader.InstallPackage(new PackageLocation(nugetConfig: testDir.
WithFile
("NuGet.config")),
767
var package = downloader.InstallPackage(new PackageLocation(nugetConfig: testDir.
WithFile
("NuGet.config"),
805
nugetConfig: testDir.
WithFile
("NuGet.config"),
Microsoft.DotNet.Tools.Tests.ComponentMocks (5)
ToolPackageDownloaderMock.cs (4)
147
_toolDownloadDir.
WithFile
("project.assets.json").Value,
150
_toolDownloadDir.
WithFile
(FakeCommandSettingsFileName).Value,
173
var executable = packageDirectory.
WithFile
("exe");
300
var tryNugetConfig = currentSearchDirectory.Value.
WithFile
("nuget.config");
ToolPackageMock.cs (1)
86
PackageDirectory.
WithFile
(executablePath));