23 references to PackageSourceLocation
dotnet (5)
Commands\Tool\Install\ToolInstallGlobalOrToolPathCommand.cs (1)
90var packageSourceLocation = new PackageSourceLocation(string.IsNullOrEmpty(configOption) ? null : new FilePath(configOption), additionalSourceFeeds: sourceOption, basePath: _currentWorkingDirectory);
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);
ToolPackage\ToolPackageDownloaderBase.cs (2)
113var packageSourceLocation = new PackageSourceLocation(packageLocation.NugetConfig, packageLocation.RootConfigDirectory, packageLocation.SourceFeedOverrides, packageLocation.AdditionalFeeds, _currentWorkingDirectory); 415var packageSourceLocation = new PackageSourceLocation(
dotnet.Tests (2)
CommandTests\Tool\Install\ToolInstallGlobalOrToolPathCommandTests.cs (1)
120var packageSourceLocation = new PackageSourceLocation(
CommandTests\Workload\Install\GivenFileBasedWorkloadInstall.cs (1)
212var packageSource = new PackageSourceLocation(new FilePath("mock-file"));
Microsoft.DotNet.PackageInstall.Tests (16)
NuGetPackageInstallerTests.cs (16)
57new PackageSourceLocation(sourceFeedOverrides: new[] { GetTestLocalFeedPath() })); 72new PackageSourceLocation(sourceFeedOverrides: new[] { nonExistFeed.Value }))); 89new PackageSourceLocation(sourceFeedOverrides: new[] 105new PackageSourceLocation(nugetConfigPath)); 124new PackageSourceLocation(validNugetConfigPath, 141new PackageSourceLocation(rootConfigDirectory: directoryBelowNugetConfig)); 152packageSourceLocation: new PackageSourceLocation(sourceFeedOverrides: new[] {GetTestLocalFeedPath()})); 169new PackageSourceLocation(sourceFeedOverrides: new[] { relativePath })); 190new PackageSourceLocation(additionalSourceFeeds: [ relativePath ]), 211new PackageSourceLocation(additionalSourceFeeds: [ relativePath ]), 224packageSourceLocation: new PackageSourceLocation(sourceFeedOverrides: new[] { relativePath }), 241new PackageSourceLocation(sourceFeedOverrides: new[] { GetTestLocalFeedPath() })); 247new PackageSourceLocation(sourceFeedOverrides: new[] { GetTestLocalFeedPath() })); 265new PackageSourceLocation(sourceFeedOverrides: new[] { GetTestLocalFeedPath() })); 271new PackageSourceLocation(sourceFeedOverrides: new[] { GetTestLocalFeedPath() })); 311packageSourceLocation: new PackageSourceLocation(