.Net Zip Up files

后端 未结 6 1313
不思量自难忘°
不思量自难忘° 2020-12-06 02:38

Whats the best way to zip up files using C#? Ideally I want to be able to seperate files into a single archive.

6条回答
  •  独厮守ぢ
    2020-12-06 02:45

    This is now built into the framework if you have version 4.5+

    Otherwise, use Ionic.

    Namespace is System.IO.Packaging.ZIPPackage.

    See http://visualstudiomagazine.com/articles/2012/05/21/net-framework-gets-zip.aspx for a story.

提交回复
热议问题