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