public List<Package> GetAll(string packagesFolderPath)
{
if (!this.IsPackageSource(packagesFolderPath))
throw new ArgumentOutOfRangeException("packagesFolderPath");
var folders = Directory.GetDirectories(packagesFolderPath)
.Select(path => new DirectoryInfo(path));
return folders.Select(di => new Package(
di.Name,
di.FullName,
GetTargetLibs(di)))
.ToList();
}