I am trying to create an archive and then append files to it.
My code looks something like this:
SevenZipCompressor comp = new SevenZipCompressor();
comp.ArchiveFormat = OutArchiveFormat.Zip;
comp.DirectoryStructure = false;
Then, I scan through files. If the archive does not exist I leave the default "create" on and just do:
If it does exist I do:
comp.CompressionMOde = SevenZip.CompressionMode.Append;
When running this, it throws and exception when trying to compress the second file into the zip.
The exception is:
KeyNotFoundException: The given key was not present in the dictionary.
Any help would be appreciated.