How can I Compress a directory with .NET?

前端 未结 10 2686
孤街浪徒
孤街浪徒 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:19

    use 7zip from commandline in C# --> LZMA SDK supports C#, and there are codesamples in the package

提交回复
热议问题