How can I Compress a directory with .NET?

前端 未结 10 2691
孤街浪徒
孤街浪徒 2021-02-14 16:16

I have a directory that contains several files. I want compress this folder to a zip or tar.gz file. How can I do his work in C#?

10条回答
  •  一整个雨季
    2021-02-14 16:39

    This is a good discussion that discusses the possibility of doing this without any third party libraries. I think you should have a look on it.

    Here is a large repository of sample codes that can help you in your work. Good Luck..

提交回复
热议问题