How to compress an existing file using the ZipArchive class in this way creates an archive, but it is empty.
ZipFile.CreateFromDirectory(@"C:\123.txt", @"C:\12313.zip") Or I did not understand the meaning of the parameters? As I understood the first parameter, we set the file that we want to compress, the second parameter is the name of the archive and its path where the file will be compressed