I am using http://sharpcompress.codeplex.com/ to compress a directory:
using (var archive = ZipArchive.Create())
{
archive.AddAllFromDirectory(folderPath);
}
Would it be possible to discard files with a special extension: .dll in a selected folder?
Add the files individually and filter out the ones you don’t want.
Above code to add files individually is taken from the sharpcompress documentation, with a few extra lines to filter out dll files.