1 write to _context
NuGet.PackageManagement (1)
Resolution\ResolverGather.cs (1)
40
_context
= context;
36 references to _context
NuGet.PackageManagement (36)
Resolution\ResolverGather.cs (36)
47
_cache =
_context
.ResolutionContext?.GatherCache;
48
_isSourceMappingConfigured =
_context
.PackageSourceMapping?.IsEnabled == true;
101
foreach (var primaryTarget in
_context
.PrimaryTargets)
111
if (
_context
.PrimaryTargetIds != null)
113
foreach (var primaryTargetId in
_context
.PrimaryTargetIds)
125
await GatherInstalledPackagesAsync(
_context
.InstalledPackages, allPrimaryTargets, token);
150
if (!
_context
.AllowDowngrades)
152
foreach (var installedPackage in
_context
.InstalledPackages)
170
if (
_context
.ResolutionContext?.DependencyBehavior != Resolver.DependencyBehavior.Ignore)
187
_context
.Log.LogDebug(string.Format(CultureInfo.CurrentCulture, "Total number of results gathered : {0}", _results.Count));
210
if (!
_context
.IsUpdateAll)
220
foreach (var pid in
_context
.PrimaryTargets)
236
_context
.Log.LogMinimal(
238
_context
.Log.LogDebug("Summary of time taken to gather dependencies per source :");
241
_context
.Log.LogDebug(
290
var packageInfo = await _packagesFolderResource.ResolvePackage(installedPackage,
_context
.TargetFramework,
_context
.ResolutionContext.SourceCacheContext,
_context
.Log, token);
404
cacheResult = _cache.GetPackage(packageSource, request.Package,
_context
.TargetFramework);
408
cacheResult = _cache.GetPackages(packageSource, request.Package.Id,
_context
.TargetFramework);
415
_context
.Log.LogDebug(string.Format(CultureInfo.CurrentCulture, "Package {0} from source {1} gathered from cache.", request.Package.Id, request.Source.Source.PackageSource.Name));
434
_context
.TargetFramework,
446
_context
.TargetFramework,
454
_context
.TargetFramework,
504
var packages = await resource.ResolvePackages(packageId, targetFramework,
_context
.ResolutionContext.SourceCacheContext,
_context
.Log, token);
512
var package = await resource.ResolvePackage(identity, targetFramework,
_context
.ResolutionContext.SourceCacheContext,
_context
.Log, token);
546
configuredPackageSources =
_context
.PackageSourceMapping.GetConfiguredPackageSources(package.Id);
551
_context
.Log.LogDebug(StringFormatter.Log_PackageSourceMappingMatchFound((package.Id), packageSourcesAtPrefix));
555
_context
.Log.LogDebug(StringFormatter.Log_PackageSourceMappingNoMatchFound((package.Id)));
599
allSources.AddRange(
_context
.PrimarySources);
600
allSources.Add(
_context
.PackagesFolderSource);
601
allSources.AddRange(
_context
.AllSources);
626
foreach (var source in
_context
.PrimarySources)
659
_packagesFolderResource = await
_context
.PackagesFolderSource.GetResourceAsync<DependencyInfoResource>(token);