Installed .Net 4.5 but can't use ZipFile class in Visual C#

后端 未结 7 995
余生分开走
余生分开走 2020-12-09 15:19

I\'m kind of a newbie to Visual Studio programming.

I recently upgraded .Net 4.0 to 4.5 in order to use the ZipFile class under System.IO.Compression, but after the

7条回答
  •  生来不讨喜
    2020-12-09 15:53

    In my case I needed to manually delete all dll references that started with System.IO.Compression and then add one by one the needed ones (System.IO.Compression.FileSystem, etc.) even though I only wrote a single using statement

    using System.IO.Compression;
    

    I hope this helps someone

提交回复
热议问题