public IEnumerable <IPackageReference> GetPackages(string workingDirectory) { var packagesFile = Path.Combine(workingDirectory, _fileSystem.PackagesFile); _topLevelPackages = _packageContainer.FindReferences(packagesFile).ToList(); return(_topLevelPackages.ToArray()); }
public IEnumerable <IPackageReference> GetPackages(string workingDirectory) { var packageFile = Path.Combine(workingDirectory, Constants.PackagesFile); var packages = _packageContainer.FindReferences(packageFile).ToList(); _topLevelPackages = packages; return(packages); }