36 instantiations of PackageLocation
dotnet (6)
Commands\Tool\Execute\ToolExecuteCommand.cs (2)
86var packageLocation = new PackageLocation( 117var downloadPackageLocation = new PackageLocation(
Commands\Tool\Install\ToolInstallGlobalOrToolPathCommand.cs (2)
199new PackageLocation(nugetConfig: GetConfigFile(), sourceFeedOverrides: _source, additionalFeeds: _addSource), 248packageLocation: new PackageLocation(nugetConfig: GetConfigFile(), sourceFeedOverrides: _source, additionalFeeds: _addSource),
Commands\Tool\Install\ToolInstallLocalInstaller.cs (1)
76new PackageLocation(
Commands\Tool\Restore\ToolPackageRestorer.cs (1)
65new PackageLocation(
Microsoft.DotNet.PackageInstall.Tests (30)
ToolPackageDownloaderTests.cs (27)
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")), 145new PackageLocation(rootConfigDirectory: subDirectory), 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")), 255var package = downloader.InstallPackage(new PackageLocation(additionalFeeds: new[] { source }), 289new PackageLocation(additionalFeeds: new[] {relativePath}), 317new PackageLocation(additionalFeeds: new[] { new Uri(source).AbsoluteUri }), packageId: TestPackageId, 341var package = downloader.InstallPackage(new PackageLocation(nugetConfig: testDir.WithFile("NuGet.config"), 374downloader.InstallPackage(new PackageLocation(additionalFeeds: new[] { source }), 409Action first = () => downloader.InstallPackage(new PackageLocation(additionalFeeds: new[] { source }), 419downloader.InstallPackage(new PackageLocation(additionalFeeds: new[] { source }), 468downloader.InstallPackage(new PackageLocation(additionalFeeds: new[] { source }), 523downloader.InstallPackage(new PackageLocation(additionalFeeds: new[] { source }), 531downloader.InstallPackage(new PackageLocation(additionalFeeds: new[] { source }), 559var package = downloader.InstallPackage(new PackageLocation(additionalFeeds: new[] { source }), 569Action secondCall = () => downloader.InstallPackage(new PackageLocation(additionalFeeds: new[] { source }), 613var package = downloader.InstallPackage(new PackageLocation(additionalFeeds: new[] { source }), 640new PackageLocation(additionalFeeds: new[] { source }), 676var package = downloader.InstallPackage(new PackageLocation(additionalFeeds: new[] { source }), 706var package = downloader.InstallPackage(new PackageLocation(nugetConfig: testDir.WithFile("NuGet.config")), 740var package = downloader.InstallPackage(new PackageLocation(nugetConfig: nugetConfigPath), 767var package = downloader.InstallPackage(new PackageLocation(nugetConfig: testDir.WithFile("NuGet.config"), 804new PackageLocation(
ToolPackageInstallerNugetCacheTests.cs (2)
46packageLocation: new PackageLocation(nugetConfig: nugetConfigPath), 85packageLocation: new PackageLocation(nugetConfig: nugetConfigPath),
ToolPackageUninstallerTests.cs (1)
32var package = downloader.InstallPackage(new PackageLocation(additionalFeeds: new[] { source }),
10 references to PackageLocation
dotnet (8)
Commands\Tool\Execute\ToolExecuteCommand.cs (2)
86var packageLocation = new PackageLocation( 117var downloadPackageLocation = new PackageLocation(
Commands\Tool\Install\ProjectRestorer.cs (1)
22PackageLocation packageLocation,
ToolPackage\IProjectRestorer.cs (1)
13PackageLocation packageLocation,
ToolPackage\IToolPackageDownloader.cs (2)
14IToolPackage InstallPackage(PackageLocation packageLocation, 26PackageLocation packageLocation,
ToolPackage\ToolPackageDownloaderBase.cs (2)
93public IToolPackage InstallPackage(PackageLocation packageLocation, PackageId packageId, 398PackageLocation packageLocation,
Microsoft.DotNet.Tools.Tests.ComponentMocks (2)
ToolPackageDownloaderMock.cs (2)
97public IToolPackage InstallPackage(PackageLocation packageLocation, PackageId packageId, 313PackageLocation packageLocation,