示例#1
0
 public BundleRoot(Runtime.Project project, string outputPath, IServiceProvider hostServices, Reports reports)
 {
     _project                  = project;
     Reports                   = reports;
     Projects                  = new List <BundleProject>();
     Packages                  = new List <BundlePackage>();
     Runtimes                  = new List <BundleRuntime>();
     OutputPath                = outputPath;
     HostServices              = hostServices;
     TargetPackagesPath        = Path.Combine(outputPath, AppRootName, "packages");
     Operations                = new BundleOperations();
     LibraryDependencyContexts = new Dictionary <Library, IList <DependencyContext> >();
 }
示例#2
0
 public BundleRoot(Runtime.Project project, string outputPath, IServiceProvider hostServices, Reports reports)
 {
     _project = project;
     Reports = reports;
     Projects = new List<BundleProject>();
     Packages = new List<BundlePackage>();
     Runtimes = new List<BundleRuntime>();
     OutputPath = outputPath;
     HostServices = hostServices;
     TargetPackagesPath = Path.Combine(outputPath, AppRootName, "packages");
     Operations = new BundleOperations();
     LibraryDependencyContexts = new Dictionary<Library, IList<DependencyContext>>();
 }
示例#3
0
 private static void ExtractPackage(string targetPath, FileStream stream)
 {
     using (var archive = new ZipArchive(stream, ZipArchiveMode.Read))
     {
         var packOperations = new BundleOperations();
         packOperations.ExtractNupkg(archive, targetPath);
     }
 }