private static IPackageManager CreatePackageManager(DirectoryPath path) { var sources = new[] { new PackageSource("https://packages.nuget.org/api/v2"), }; var repo = AggregateRepository.Create(PackageRepositoryFactory.Default, sources, false); return(new PackageManager(repo, path.FullPath)); }