示例#1
0
 public void UpdateDependency(ResolvedDependency dependency,
     IPackageRepository destinationRepository)
 {
     var sourceRepository = dependency.Package.Source;
     var source = dependency.Package.Load();
     using(var packageStream = source.OpenStream())
     {
         destinationRepository.Publish(dependency.Package.Name + "-" + dependency.Package.Version, packageStream);
     }
 }
 static bool IsInContentBranch(ResolvedDependency resolvedDependency)
 {
     return resolvedDependency.Dependency.ContentOnly
            || (resolvedDependency.Parent != null && IsInContentBranch(resolvedDependency.Parent));
 }