Created
May 26, 2024 16:51
-
-
Save hishaamn/aed282a05e4d30782edbcf58c3700338 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 = $@"Update filepath of the Package.zip"; | |
ISource<PackageEntry> source = new Sitecore.Install.Zip.PackageReader(filePath); | |
var packageSinkHelper = new PackageSinkManager(); | |
if (!packageSinkHelper.IsInitialized) | |
{ | |
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