コード例 #1
0
ファイル: PackageManager.cs プロジェクト: x97mdr/openwrap
 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);
     }
 }
コード例 #2
0
 static bool IsInContentBranch(ResolvedDependency resolvedDependency)
 {
     return resolvedDependency.Dependency.ContentOnly
            || (resolvedDependency.Parent != null && IsInContentBranch(resolvedDependency.Parent));
 }