23 instantiations of PackageSourceLocation
dotnet (5)
Commands\Tool\Install\ToolInstallGlobalOrToolPathCommand.cs (1)
90
var packageSourceLocation = new
PackageSourceLocation
(string.IsNullOrEmpty(configOption) ? null : new FilePath(configOption), additionalSourceFeeds: sourceOption, basePath: _currentWorkingDirectory);
Commands\Workload\InstallingWorkloadCommand.cs (1)
107
new
PackageSourceLocation
(string.IsNullOrEmpty(configOption) ? null : new FilePath(configOption), sourceFeedOverrides: sourceOption);
Commands\Workload\Repair\WorkloadRepairCommand.cs (1)
38
new
PackageSourceLocation
(string.IsNullOrEmpty(configOption) ? null : new FilePath(configOption), sourceFeedOverrides: sourceOption);
ToolPackage\ToolPackageDownloaderBase.cs (2)
113
var packageSourceLocation = new
PackageSourceLocation
(packageLocation.NugetConfig, packageLocation.RootConfigDirectory, packageLocation.SourceFeedOverrides, packageLocation.AdditionalFeeds, _currentWorkingDirectory);
415
var packageSourceLocation = new
PackageSourceLocation
(
dotnet.Tests (2)
CommandTests\Tool\Install\ToolInstallGlobalOrToolPathCommandTests.cs (1)
120
var packageSourceLocation = new
PackageSourceLocation
(
CommandTests\Workload\Install\GivenFileBasedWorkloadInstall.cs (1)
212
var packageSource = new
PackageSourceLocation
(new FilePath("mock-file"));
Microsoft.DotNet.PackageInstall.Tests (16)
NuGetPackageInstallerTests.cs (16)
57
new
PackageSourceLocation
(sourceFeedOverrides: new[] { GetTestLocalFeedPath() }));
72
new
PackageSourceLocation
(sourceFeedOverrides: new[] { nonExistFeed.Value })));
89
new
PackageSourceLocation
(sourceFeedOverrides: new[]
105
new
PackageSourceLocation
(nugetConfigPath));
124
new
PackageSourceLocation
(validNugetConfigPath,
141
new
PackageSourceLocation
(rootConfigDirectory: directoryBelowNugetConfig));
152
packageSourceLocation: new
PackageSourceLocation
(sourceFeedOverrides: new[] {GetTestLocalFeedPath()}));
169
new
PackageSourceLocation
(sourceFeedOverrides: new[] { relativePath }));
190
new
PackageSourceLocation
(additionalSourceFeeds: [ relativePath ]),
211
new
PackageSourceLocation
(additionalSourceFeeds: [ relativePath ]),
224
packageSourceLocation: new
PackageSourceLocation
(sourceFeedOverrides: new[] { relativePath }),
241
new
PackageSourceLocation
(sourceFeedOverrides: new[] { GetTestLocalFeedPath() }));
247
new
PackageSourceLocation
(sourceFeedOverrides: new[] { GetTestLocalFeedPath() }));
265
new
PackageSourceLocation
(sourceFeedOverrides: new[] { GetTestLocalFeedPath() }));
271
new
PackageSourceLocation
(sourceFeedOverrides: new[] { GetTestLocalFeedPath() }));
311
packageSourceLocation: new
PackageSourceLocation
(
62 references to PackageSourceLocation
dotnet (38)
Commands\Tool\Install\ToolInstallGlobalOrToolPathCommand.cs (1)
90
var
packageSourceLocation = new PackageSourceLocation(string.IsNullOrEmpty(configOption) ? null : new FilePath(configOption), additionalSourceFeeds: sourceOption, basePath: _currentWorkingDirectory);
Commands\Workload\Install\FileBasedInstaller.cs (2)
40
private readonly
PackageSourceLocation
_packageSourceLocation;
53
PackageSourceLocation
packageSourceLocation = null,
Commands\Workload\Install\NetSdkMsiInstallerClient.cs (3)
35
private readonly
PackageSourceLocation
_packageSourceLocation;
48
PackageSourceLocation
packageSourceLocation = null,
1115
PackageSourceLocation
packageSourceLocation = null,
Commands\Workload\Install\WorkloadInstallerFactory.cs (1)
25
PackageSourceLocation
packageSourceLocation = null,
Commands\Workload\Install\WorkloadManifestUpdater.cs (2)
31
private readonly
PackageSourceLocation
_packageSourceLocation;
43
PackageSourceLocation
packageSourceLocation = null,
Commands\Workload\InstallingWorkloadCommand.cs (1)
43
protected readonly
PackageSourceLocation
_packageSourceLocation;
Commands\Workload\Repair\WorkloadRepairCommand.cs (1)
18
private readonly
PackageSourceLocation
_packageSourceLocation;
NugetPackageDownloader\INuGetPackageDownloader.cs (6)
17
PackageSourceLocation
packageSourceLocation = null,
25
PackageSourceLocation
packageSourceLocation = null,
31
PackageSourceLocation
packageSourceLocation = null,
36
PackageSourceLocation
packageSourceLocation = null,
41
PackageSourceLocation
packageSourceLocation = null);
45
PackageSourceLocation
packageSourceLocation = null);
NugetPackageDownloader\NuGetPackageDownloader.cs (12)
94
PackageSourceLocation
packageSourceLocation = null,
207
PackageSourceLocation
packageSourceLocation = null,
277
PackageSourceLocation
packageSourceLocation = null,
349
private IEnumerable<PackageSource> LoadOverrideSources(
PackageSourceLocation
packageSourceLocation = null)
372
private List<PackageSource> LoadDefaultSources(PackageId packageId,
PackageSourceLocation
packageSourceLocation = null, PackageSourceMapping packageSourceMapping = null)
442
public IEnumerable<PackageSource> LoadNuGetSources(PackageId packageId,
PackageSourceLocation
packageSourceLocation = null, PackageSourceMapping packageSourceMapping = null)
610
PackageSourceLocation
packageSourceLocation = null)
624
PackageSourceLocation
packageSourceLocation = null)
758
PackageSourceLocation
packageSourceLocation = null,
764
public async Task<IEnumerable<NuGetVersion>> GetLatestPackageVersions(PackageId packageId, int numberOfResults,
PackageSourceLocation
packageSourceLocation = null, bool includePreview = false)
774
public async Task<IEnumerable<string>> GetPackageIdsAsync(string idStem, bool allowPrerelease,
PackageSourceLocation
packageSourceLocation = null, CancellationToken cancellationToken = default)
789
public async Task<IEnumerable<NuGetVersion>> GetPackageVersionsAsync(PackageId packageId, string versionPrefix = null, bool allowPrerelease = false,
PackageSourceLocation
packageSourceLocation = null, CancellationToken cancellationToken = default)
ShellShim\ShellShimTemplateFinder.cs (2)
18
PackageSourceLocation
packageSourceLocation)
22
private readonly
PackageSourceLocation
_packageSourceLocation = packageSourceLocation;
ToolPackage\ToolPackageDownloader.cs (1)
59
PackageSourceLocation
packageSourceLocation,
ToolPackage\ToolPackageDownloaderBase.cs (6)
70
PackageSourceLocation
packageSourceLocation,
113
var
packageSourceLocation = new PackageSourceLocation(packageLocation.NugetConfig, packageLocation.RootConfigDirectory, packageLocation.SourceFeedOverrides, packageLocation.AdditionalFeeds, _currentWorkingDirectory);
149
PackageSourceLocation
packageSourceLocation,
232
PackageSourceLocation
packageSourceLocation,
269
PackageSourceLocation
packageSourceLocation,
415
var
packageSourceLocation = new PackageSourceLocation(
dotnet.Tests (15)
CommandTests\Tool\Install\ToolInstallGlobalOrToolPathCommandTests.cs (1)
120
var
packageSourceLocation = new PackageSourceLocation(
CommandTests\Workload\Install\FailingNuGetPackageInstaller.cs (6)
24
PackageSourceLocation
packageSourceLocation = null,
42
public Task<NuGetVersion> GetLatestPackageVersion(PackageId packageId,
PackageSourceLocation
packageSourceLocation = null, bool includePreview = false) => throw new NotImplementedException();
43
public Task<IEnumerable<NuGetVersion>> GetLatestPackageVersions(PackageId packageId, int numberOfResults,
PackageSourceLocation
packageSourceLocation = null, bool includePreview = false) => throw new NotImplementedException();
44
public Task<NuGetVersion> GetBestPackageVersionAsync(PackageId packageId, VersionRange versionRange,
PackageSourceLocation
packageSourceLocation = null) => throw new NotImplementedException();
47
VersionRange versionRange,
PackageSourceLocation
packageSourceLocation = null) => throw new NotImplementedException();
51
PackageSourceLocation
packageSourceLocation = null,
CommandTests\Workload\Install\GivenFileBasedWorkloadInstall.cs (6)
154
mockNugetInstaller.DownloadCallParams[0].Should().BeEquivalentTo((new PackageId(packId), new NuGetVersion(packVersion), null as DirectoryPath?, null as
PackageSourceLocation
));
176
(nugetInstaller as MockNuGetPackageDownloader).DownloadCallParams[0].Should().BeEquivalentTo((new PackageId(packId), new NuGetVersion(packVersion), null as DirectoryPath?, null as
PackageSourceLocation
));
201
mockNugetInstaller.DownloadCallParams[0].Should().BeEquivalentTo((new PackageId(packId), new NuGetVersion(packVersion), null as DirectoryPath?, null as
PackageSourceLocation
));
212
var
packageSource = new PackageSourceLocation(new FilePath("mock-file"));
335
new NuGetVersion(manifestVersion.ToString()), null as DirectoryPath?, null as
PackageSourceLocation
));
422
PackageSourceLocation
packageSourceLocation = null)
CommandTests\Workload\Install\GivenWorkloadManifestUpdater.cs (2)
681
private List<(PackageId, NuGetVersion, DirectoryPath?,
PackageSourceLocation
)> GetExpectedDownloadedPackages(string sdkFeatureBand = "6.0.100")
684
.Select(id => ((PackageId, NuGetVersion, DirectoryPath?,
PackageSourceLocation
))(new PackageId($"{id}.manifest-{sdkFeatureBand}"), null, null, null)).ToList();
Microsoft.DotNet.Tools.Tests.ComponentMocks (9)
MockNuGetPackageDownloader.cs (8)
22
public List<(PackageId id, NuGetVersion version, DirectoryPath? downloadFolder,
PackageSourceLocation
packageSourceLocation)> DownloadCallParams = new();
46
bool ShouldFindPackage(PackageId packageId,
PackageSourceLocation
packageSourceLocation)
59
PackageSourceLocation
packageSourceLocation = null,
111
public Task<IEnumerable<NuGetVersion>> GetLatestPackageVersions(PackageId packageId, int numberOfResults,
PackageSourceLocation
packageSourceLocation = null, bool includePreview = false)
122
public Task<NuGetVersion> GetLatestPackageVersion(PackageId packageId,
PackageSourceLocation
packageSourceLocation = null, bool includePreview = false)
132
public async Task<NuGetVersion> GetBestPackageVersionAsync(PackageId packageId, VersionRange versionRange,
PackageSourceLocation
packageSourceLocation = null)
138
VersionRange versionRange,
PackageSourceLocation
packageSourceLocation = null)
160
PackageSourceLocation
packageSourceLocation = null,
ToolPackageDownloaderMock2.cs (1)
115
NuGetVersion packageVersion,
PackageSourceLocation
packageSourceLocation, Cli.Utils.VerbosityOptions verbosity, bool includeUnlisted = false)