public static PackageDirectoryPath GetPackageDirectoryPath(LocalDirectoryNugetRepository repository, PackageID packageID) { var packageDirectoryName = NuGetIoUtilities.GetPackageDirectoryName(packageID); var packageDirectoryPath = PathUtilitiesExtra.Combine(repository.DirectoryPath, packageDirectoryName).Value.AsPackageDirectoryPath(); return(packageDirectoryPath); }
public static void ListAllPackageVersions(LocalDirectoryNugetRepository repository, PackageID packageID, TextWriter writer) { var packageDirectoryName = NuGetIoUtilities.GetPackageDirectoryName(packageID); var packageDirectoryPath = PathUtilitiesExtra.Combine(repository.DirectoryPath, packageDirectoryName).Value.AsPackageDirectoryPath(); LocalDirectoryNugetRepository.ListAllPackageVersions(packageDirectoryPath, writer); }