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>>(); }
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> >(); }
private static void ExtractPackage(string targetPath, FileStream stream) { using (var archive = new ZipArchive(stream, ZipArchiveMode.Read)) { var packOperations = new PublishOperations(); packOperations.ExtractNupkg(archive, targetPath); } }