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