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