public void DeployDependency(IPackageInfo resolvedPackage, IPackagePublisher publisher) { var source = resolvedPackage.Load(); using (var packageStream = source.OpenStream()) publisher.Publish(resolvedPackage.FullName + ".wrap", packageStream); }
public void DeployDependency(IPackageInfo resolvedPackage, IPackagePublisher publisher) { var source = resolvedPackage.Load(); if (source == null) { throw new InvalidPackageException("The package could not be opened."); } using (var packageStream = source.OpenStream()) publisher.Publish(resolvedPackage.FullName + ".wrap", packageStream); }