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; 101foreach (var primaryTarget in _context.PrimaryTargets) 111if (_context.PrimaryTargetIds != null) 113foreach (var primaryTargetId in _context.PrimaryTargetIds) 125await GatherInstalledPackagesAsync(_context.InstalledPackages, allPrimaryTargets, token); 150if (!_context.AllowDowngrades) 152foreach (var installedPackage in _context.InstalledPackages) 170if (_context.ResolutionContext?.DependencyBehavior != Resolver.DependencyBehavior.Ignore) 187_context.Log.LogDebug(string.Format(CultureInfo.CurrentCulture, "Total number of results gathered : {0}", _results.Count)); 210if (!_context.IsUpdateAll) 220foreach (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( 290var packageInfo = await _packagesFolderResource.ResolvePackage(installedPackage, _context.TargetFramework, _context.ResolutionContext.SourceCacheContext, _context.Log, token); 404cacheResult = _cache.GetPackage(packageSource, request.Package, _context.TargetFramework); 408cacheResult = _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, 504var packages = await resource.ResolvePackages(packageId, targetFramework, _context.ResolutionContext.SourceCacheContext, _context.Log, token); 512var package = await resource.ResolvePackage(identity, targetFramework, _context.ResolutionContext.SourceCacheContext, _context.Log, token); 546configuredPackageSources = _context.PackageSourceMapping.GetConfiguredPackageSources(package.Id); 551_context.Log.LogDebug(StringFormatter.Log_PackageSourceMappingMatchFound((package.Id), packageSourcesAtPrefix)); 555_context.Log.LogDebug(StringFormatter.Log_PackageSourceMappingNoMatchFound((package.Id))); 599allSources.AddRange(_context.PrimarySources); 600allSources.Add(_context.PackagesFolderSource); 601allSources.AddRange(_context.AllSources); 626foreach (var source in _context.PrimarySources) 659_packagesFolderResource = await _context.PackagesFolderSource.GetResourceAsync<DependencyInfoResource>(token);