public static PackageDirectoryPath GetPackageDirectoryPath(DirectoryPath localPackageRepositoryDirectoryPath, PackageID packageID) { var localDirectoryNugetRepository = new LocalDirectoryNugetRepository(localPackageRepositoryDirectoryPath); var output = LocalDirectoryNugetRepository.GetPackageDirectoryPath(localDirectoryNugetRepository, packageID); return(output); }
public static VersionDirectoryPath GetPackageVersionDirectoryPath(LocalDirectoryNugetRepository repository, PackageID packageID, Version packageVersion) { var packageDirectoryPath = LocalDirectoryNugetRepository.GetPackageDirectoryPath(repository, packageID); var versionDirectoryName = NuGetIoUtilities.GetVersionDirectoryName(packageVersion); var packageVersionDirectoryPath = PathUtilitiesExtra.Combine(packageDirectoryPath, versionDirectoryName).Value.AsVersionDirectoryPath(); return(packageVersionDirectoryPath); }