Ejemplo n.º 1
0
        public IEnumerable <IPackageReference> GetPackages(string workingDirectory)
        {
            var packagesFile = Path.Combine(workingDirectory, _fileSystem.PackagesFile);

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

            _topLevelPackages = packages;

            return(packages);
        }