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

后端 未结 7 994
余生分开走
余生分开走 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 16:08

    For Windows Phone 8.1, use NuGet to add the Microsoft Compression package to your project and reference it.

    If you had an older WP8 project you may have been using a different package that would create conflicts with the System.IO.Compression dll that is part of the .NET 4.5 that comes with WP8.1. You need to get rid of that and use Microsoft Compression which works harmoniously with .NET 4.5. That's how I got here!

提交回复
热议问题