public void DeployDependency(IPackageInfo resolvedPackage,
     IPackagePublisher publisher)
 {
     var source = resolvedPackage.Load();
     using (var packageStream = source.OpenStream())
         publisher.Publish(resolvedPackage.FullName + ".wrap", packageStream);
 }
예제 #2
0
        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);
        }