Esempio n. 1
0
 public PublishRoot(Runtime.Project project, string outputPath, IServiceProvider hostServices, Reports reports)
 {
     _project = project;
     Reports = reports;
     Projects = new List<PublishProject>();
     Packages = new List<PublishPackage>();
     Runtimes = new List<PublishRuntime>();
     OutputPath = outputPath;
     HostServices = hostServices;
     TargetPackagesPath = Path.Combine(outputPath, AppRootName, "packages");
     Operations = new PublishOperations();
     LibraryDependencyContexts = new Dictionary<Library, IList<DependencyContext>>();
 }
Esempio n. 2
0
 public PublishRoot(Runtime.Project project, string outputPath, IServiceProvider hostServices, Reports reports)
 {
     _project                  = project;
     Reports                   = reports;
     Projects                  = new List <PublishProject>();
     Packages                  = new List <PublishPackage>();
     Runtimes                  = new List <PublishRuntime>();
     OutputPath                = outputPath;
     HostServices              = hostServices;
     TargetPackagesPath        = Path.Combine(outputPath, AppRootName, "packages");
     Operations                = new PublishOperations();
     LibraryDependencyContexts = new Dictionary <Library, IList <DependencyContext> >();
 }
Esempio n. 3
0
 private static void ExtractPackage(string targetPath, FileStream stream)
 {
     using (var archive = new ZipArchive(stream, ZipArchiveMode.Read))
     {
         var packOperations = new PublishOperations();
         packOperations.ExtractNupkg(archive, targetPath);
     }
 }