Created
May 25, 2024 18:45
-
-
Save hishaamn/5d9d59307e7514d55b5da9247b78a92b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
var filePath = $@"Path to package.zip"; | |
ISource<PackageEntry> source = new Sitecore.Install.Zip.PackageReader(filePath); | |
var packageSinkHelper = new PackageSinkManager(); | |
packageSinkHelper.Initialize(Installer.CreatePreviewContext()); | |
new EntrySorter(source).Populate(packageSinkHelper); | |
Console.ReadKey(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment