How To Embed 7z.dll in exe?

Feb 4 at 2:36 PM
Edited Feb 4 at 2:36 PM
How To Embed 7z.dll in exe?
var currentDir = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
SevenZipCompressor.SetLibraryPath(Path.Combine(currentDir, @"Resources\7z.dll"));
Feb 27 at 12:38 AM
Place it as "Embedded Resource" in your program or library and access/extract it with Assembly.GetManifestResourceStream() to your application path or where ever and initialize your SevenZip instance with that path.