84 instantiations of 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") }
173 references to FilePath
dotnet (91)
BuildServer\BuildServerProvider.cs (1)
83private RazorPidFile ReadRazorPidFile(FilePath path)
BuildServer\RazorPidFile.cs (5)
10internal class RazorPidFile(FilePath path, int processId, FilePath serverPath, string pipeName) 15public FilePath Path { get; } = path; 19public FilePath ServerPath { get; } = serverPath; 23public static RazorPidFile Read(FilePath path, IFileSystem fileSystem = null)
Commands\Tool\Common\ToolManifestFinderExtensions.cs (2)
15public static (FilePath? filePath, string warningMessage) ExplicitManifestOrFindManifestContainPackageId( 25IReadOnlyList<FilePath> manifestFilesContainPackageId;
Commands\Tool\Install\ProjectRestorer.cs (2)
21public void Restore(FilePath project, 76internal static void WriteLine(IReporter reporter, string line, FilePath project)
Commands\Tool\Install\ToolInstallGlobalOrToolPathCommand.cs (2)
318private FilePath? GetConfigFile() 320FilePath? configFile = null;
Commands\Tool\Install\ToolInstallLocalCommand.cs (5)
92FilePath manifestFile = GetManifestFilePath(); 94(FilePath? manifestFileOptional, string warningMessage) = 122public int InstallToolUpdate(ToolManifestPackage existingPackage, IToolPackage toolDownloadedPackage, FilePath manifestFile, PackageId packageId) 168public int InstallNewTool(FilePath manifestFile, PackageId packageId) 195public FilePath GetManifestFilePath()
Commands\Tool\Install\ToolInstallLocalInstaller.cs (2)
49public IToolPackage Install(FilePath manifestFile, PackageId packageId) 61FilePath? configFile = null;
Commands\Tool\List\ToolListLocalCommand.cs (4)
60public IEnumerable<(ToolManifestPackage, FilePath)> GetPackages(PackageId? packageId) 72private void PrintTable(IEnumerable<(ToolManifestPackage toolManifestPackage, FilePath SourceManifest)> packageEnumerable) 74var table = new PrintableTable<(ToolManifestPackage toolManifestPackage, FilePath SourceManifest)>(); 90private void PrintJson(IEnumerable<(ToolManifestPackage toolManifestPackage, FilePath SourceManifest)> packageEnumerable)
Commands\Tool\Restore\ToolPackageRestorer.cs (1)
48FilePath? configFile)
Commands\Tool\Restore\ToolRestoreCommand.cs (4)
80FilePath? customManifestFileLocation = GetCustomManifestFileLocation(); 82FilePath? configFile = null; 166private FilePath? GetCustomManifestFileLocation() 169FilePath? customManifestFileLocation;
Commands\Tool\Uninstall\ToolUninstallLocalCommand.cs (2)
44(FilePath? manifestFileOptional, string warningMessage) = 52var manifestFile = manifestFileOptional.Value;
NugetPackageDownloader\FirstPartyNuGetPackageSigningVerifier.cs (3)
38public bool Verify(FilePath nupkgToVerify, out string commandOutput) 43internal bool IsFirstParty(FilePath nupkgToVerify) 79public static bool NuGetVerify(FilePath nupkgToVerify, out string commandOutput, string currentWorkingDirectory = null)
NugetPackageDownloader\IFirstPartyNuGetPackageSigningVerifier.cs (1)
12bool Verify(FilePath nupkgToVerify, out string commandOutput);
NugetPackageDownloader\NuGetPackageDownloader.cs (1)
310internal IEnumerable<FilePath> FindAllFilesNeedExecutablePermission(IEnumerable<string> files,
NugetPackageDownloader\PackageSourceLocation.cs (2)
13FilePath? nugetConfig = null, 29public FilePath? NugetConfig { get; }
ShellShim\AppHostShimMaker.cs (2)
20public void CreateApphostShellShim(FilePath entryPoint, FilePath shimPath)
ShellShim\IApphostShellShimMaker.cs (2)
12void CreateApphostShellShim(FilePath entryPoint, FilePath shimPath);
ShellShim\IShellShimRepository.cs (1)
14void CreateShim(ToolCommand toolCommand, IReadOnlyList<FilePath> packagedShims = null);
ShellShim\ShellShimRepository.cs (9)
24public void CreateShim(ToolCommand toolCommand, IReadOnlyList<FilePath> packagedShims = null) 51if (TryGetPackagedShim(packagedShims, toolCommand, out FilePath? packagedShim)) 109foreach (var file in GetShimFiles(toolCommand).Where(f => _fileSystem.File.Exists(f.Value))) 124foreach (var file in GetShimFiles(toolCommand).Where(f => _fileSystem.File.Exists(f.Value))) 173private IEnumerable<FilePath> GetShimFiles(ToolCommand toolCommand) 178private FilePath GetShimPath(ToolCommand toolCommand) 198IReadOnlyList<FilePath> packagedShims, 200out FilePath? packagedShim) 206FilePath[] candidatepackagedShim = [.. packagedShims.Where(s => string.Equals(Path.GetFileName(s.Value), Path.GetFileName(GetShimPath(toolCommand).Value)))];
ToolManifest\IToolManifestEditor.cs (3)
15void Add(FilePath manifest, PackageId packageId, NuGetVersion nuGetVersion, ToolCommandName[] toolCommandNames, bool rollForward = false); 16void Remove(FilePath manifest, PackageId packageId); 17void Edit(FilePath manifest, PackageId packageId, NuGetVersion newNuGetVersion, ToolCommandName[] newToolCommandNames);
ToolManifest\IToolManifestFinder.cs (3)
13IReadOnlyCollection<ToolManifestPackage> Find(FilePath? filePath = null); 14FilePath FindFirst(bool createManifestFileOption = false); 15IReadOnlyList<FilePath> FindByPackageId(PackageId packageId);
ToolManifest\IToolManifestInspector.cs (2)
12IReadOnlyCollection<(ToolManifestPackage toolManifestPackage, FilePath SourceManifest)> Inspect( 13FilePath? filePath = null);
ToolManifest\ToolManifestEditor.cs (6)
29FilePath manifest, 80FilePath manifest, 113Read(FilePath manifest, DirectoryPath correspondingDirectory) 133private SerializableLocalToolsManifest DeserializeLocalToolsManifest(FilePath possibleManifest) 225FilePath path, 403public void Remove(FilePath manifest, PackageId packageId)
ToolManifest\ToolManifestFinder.cs (17)
34public IReadOnlyCollection<ToolManifestPackage> Find(FilePath? filePath = null) 36IEnumerable<(FilePath manifestfile, DirectoryPath _)> allPossibleManifests = 50public IReadOnlyCollection<(ToolManifestPackage toolManifestPackage, FilePath SourceManifest)> Inspect( 51FilePath? filePath = null) 53IEnumerable<(FilePath manifestfile, DirectoryPath _)> allPossibleManifests = 65IEnumerable<(FilePath manifestfile, DirectoryPath _)> allPossibleManifests, 66out List<(ToolManifestPackage toolManifestPackage, FilePath SourceManifest)> toolManifestPackageAndSource) 70foreach ((FilePath possibleManifest, DirectoryPath correspondingDirectory) in allPossibleManifests) 103foreach ((FilePath possibleManifest, DirectoryPath correspondingDirectory) in 135foreach ((FilePath possibleManifest, DirectoryPath correspondingDirectory) in 160private IEnumerable<(FilePath manifestfile, DirectoryPath manifestFileFirstEffectDirectory)> 168var tryManifest = currentSearchDirectory.Value.WithFile(ManifestFilenameConvention); 193public FilePath FindFirst(bool createIfNotFound = false) 195foreach ((FilePath possibleManifest, DirectoryPath _) in EnumerateDefaultAllPossibleManifests()) 262public IReadOnlyList<FilePath> FindByPackageId(PackageId packageId) 264var result = new List<FilePath>(); 267foreach ((FilePath possibleManifest,
ToolPackage\IProjectRestorer.cs (1)
12void Restore(FilePath project,
ToolPackage\IToolPackage.cs (1)
28IReadOnlyList<FilePath> PackagedShims { get; }
ToolPackage\PackageLocation.cs (2)
11FilePath? nugetConfig = null, 16public FilePath? NugetConfig { get; } = nugetConfig;
ToolPackage\ToolCommand.cs (2)
14FilePath executable) 20public FilePath Executable { get; private set; } = executable;
ToolPackage\ToolPackageInstance.cs (3)
34public IReadOnlyList<FilePath> PackagedShims { get; private set; } 152private FilePath LockFileRelativePathToFullFilePath(string lockFileRelativePath, LockFileTargetLibrary library) 183var toolConfigurationPath =
dotnet.Tests (43)
CommandFactoryTests\GivenALocalToolsCommandResolver.cs (8)
38(FilePath fakeExecutable, LocalToolsCommandResolver localToolsCommandResolver) = DefaultSetup(toolCommand: "a"); 57(FilePath fakeExecutable, LocalToolsCommandResolver localToolsCommandResolver) = DefaultSetup(toolCommand); 74(FilePath fakeExecutable, LocalToolsCommandResolver localToolsCommandResolver) = DefaultSetup("-d"); 84private (FilePath, LocalToolsCommandResolver) DefaultSetup(string toolCommand) 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\List\ToolListLocalCommandTests.cs (5)
34new List<(ToolManifestPackage toolManifestPackage, FilePath SourceManifest)>() 144private readonly IReadOnlyCollection<(ToolManifestPackage toolManifestPackage, FilePath SourceManifest)> 148IReadOnlyCollection<(ToolManifestPackage toolManifestPackage, FilePath SourceManifest)> toReturn) 153public IReadOnlyCollection<(ToolManifestPackage toolManifestPackage, FilePath SourceManifest)> Inspect( 154FilePath? filePath = null)
CommandTests\Tool\Restore\ToolRestoreCommandTests.cs (6)
544public IReadOnlyCollection<ToolManifestPackage> Find(FilePath? filePath = null) 549public FilePath FindFirst(bool createManifestFileOption = false) 554public IReadOnlyList<FilePath> FindByPackageId(PackageId packageId) 562public IReadOnlyCollection<ToolManifestPackage> Find(FilePath? filePath = null) 567public FilePath FindFirst(bool createManifestFileOption = false) 572public IReadOnlyList<FilePath> FindByPackageId(PackageId packageId)
CommandTests\Tool\Restore\ToolRestoreCommandWithMultipleNugetConfigTests.cs (3)
170public IReadOnlyCollection<ToolManifestPackage> Find(FilePath? filePath = null) 175public FilePath FindFirst(bool createManifestFileOption = false) 180public IReadOnlyList<FilePath> FindByPackageId(PackageId packageId)
CommandTests\Tool\Run\ToolRunCommandTests.cs (4)
33(FilePath fakeExecutable, LocalToolsCommandResolver localToolsCommandResolver) = DefaultSetup("a"); 53(FilePath fakeExecutable, LocalToolsCommandResolver localToolsCommandResolver) = DefaultSetup("a"); 67private (FilePath, LocalToolsCommandResolver) DefaultSetup(string toolCommand) 78FilePath fakeExecutable = _nugetGlobalPackagesFolder.WithFile("fakeExecutable.dll");
CommandTests\Tool\Update\ToolUpdateLocalCommandTests.cs (1)
403FilePath? manifestFile = null,
ShellShimTests\ShellShimRepositoryTests.cs (11)
30var outputDll = MakeHelloWorldExecutableDll(); 48var outputDll = MakeHelloWorldExecutableDll(); 76var outputDll = MakeHelloWorldExecutableDll(); 99var outputDll = MakeHelloWorldExecutableDll(); 117var outputDll = MakeHelloWorldExecutableDll(identifier: arguments); 208FilePath targetExecutablePath = MakeHelloWorldExecutableDll(identifier: testMockBehaviorIsInSync.ToString()); 268FilePath targetExecutablePath = MakeHelloWorldExecutableDll(identifier: testMockBehaviorIsInSync.ToString()); 299FilePath targetExecutablePath = MakeHelloWorldExecutableDll(identifier: testMockBehaviorIsInSync.ToString()); 337FilePath targetExecutablePath = MakeHelloWorldExecutableDll(identifier: testMockBehaviorIsInSync.ToString()); 404FilePath[] filePaths = new[] { new FilePath(dummyShimPath), new FilePath("path" + dummyShimPath) }; 496private FilePath MakeHelloWorldExecutableDll([CallerMemberName] string callingMethod = "", string identifier = null)
ToolManifestTests\ToolManifestFinderTests.cs (5)
408manifests.Should().ContainInOrder(new List<FilePath> 416manifests2.Should().ContainInOrder(new List<FilePath> 700FilePath toolmanifestFilePath = toolManifest.FindFirst(); 716FilePath toolmanifestFilePath = toolManifest.FindFirst(); 776FilePath createdManifest = toolManifest.FindFirst(createIfNotFound: true);
Microsoft.DotNet.Configurer (3)
FileSentinel.cs (3)
10private readonly FilePath _file; 13public FileSentinel(FilePath file) : 18internal FileSentinel(FilePath file, IFileSystem? fileSystem)
Microsoft.DotNet.InternalAbstractions (1)
DirectoryPath.cs (1)
33public FilePath WithFile(string fileName)
Microsoft.DotNet.PackageInstall.Tests (16)
MockFirstPartyNuGetPackageSigningVerifier.cs (1)
20public bool Verify(FilePath nupkgToVerify, out string commandOutput)
NuGetPackageInstallerTests.cs (6)
98FilePath nugetConfigPath = GenerateRandomNugetConfigFilePath(); 115FilePath validNugetConfigPath = GenerateRandomNugetConfigFilePath(); 131FilePath nugetConfigPath = GenerateRandomNugetConfigFilePath(); 355private static void WriteNugetConfigFileToPointToTheFeed(IFileSystem fileSystem, FilePath? filePath) 380private static FilePath GenerateRandomNugetConfigFilePath() 387FilePath nugetConfigFullPath =
ToolPackageDownloaderTests.cs (3)
729var nugetConfigPath = new FilePath(Path.Combine(root.Path, "NuGet.config")); 886var nugetConfigPath = new FilePath(Path.Combine(root.Value, "NuGet.config")); 925private static void WriteNugetConfigFile(IFileSystem fileSystem, FilePath? filePath, bool includeLocalFeedPath)
ToolPackageInstallerNugetCacheTests.cs (4)
30var nugetConfigPath = WriteNugetConfigFileToPointToTheFeed(testDirectory); 74var nugetConfigPath = WriteNugetConfigFileToPointToTheFeed(testDirectory); 96private static List<MockFeed> GetMockFeedsForConfigFile(FilePath nugetConfig) 149private FilePath WriteNugetConfigFileToPointToTheFeed(string testDirectory)
ToolPackageUninstallerTests.cs (2)
85var packagedShimsMap = new Dictionary<PackageId, IReadOnlyList<FilePath>> 87[TestPackageId] = new FilePath[] { new FilePath("path/demo.exe") }
Microsoft.DotNet.Tools.Tests.ComponentMocks (19)
AppHostShellShimMakerMock.cs (2)
21public void CreateApphostShellShim(FilePath entryPoint, FilePath shimPath)
ToolPackageDownloaderMock.cs (13)
46private readonly Dictionary<PackageId, IReadOnlyList<FilePath>> _packagedShimsMap; 57Dictionary<PackageId, IReadOnlyList<FilePath>>? packagedShimsMap = null, 70_packagedShimsMap = packagedShimsMap ?? new Dictionary<PackageId, IReadOnlyList<FilePath>>(); 173var executable = packageDirectory.WithFile("exe"); 184PackagedShims = Array.Empty<FilePath>() 198IReadOnlyList<FilePath>? packedShims = null; 228FilePath? nugetConfig = null, 278var probedNugetConfig = EnumerateDefaultAllPossibleNuGetConfig(rootConfigDirectory.Value) 282if (!Equals(probedNugetConfig, default(FilePath))) 295private static IEnumerable<FilePath> EnumerateDefaultAllPossibleNuGetConfig(DirectoryPath probStart) 300var tryNugetConfig = currentSearchDirectory.Value.WithFile("nuget.config"); 306private static bool ExcludeOtherFeeds(FilePath nugetConfig, MockFeed f) 349public IReadOnlyList<FilePath>? PackagedShims { get; set; }
ToolPackageMock.cs (4)
21private readonly IReadOnlyList<FilePath> _packagedShims; 29IReadOnlyList<FilePath> packagedShims = null, 38_packagedShims = packagedShims ?? new List<FilePath>(); 57public IReadOnlyList<FilePath> PackagedShims