Installed .Net 4.5 but can't use ZipFile class

2019-01-18 01:40发布

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 installation completed, Visual Studio (I'm using 2012) still cannot recognize ZipFile as a class name.

I've made sure that .Net 4.5 appears in Control Panel programs list and my C# solution sets .Net Framework 4 as the target framework.

Could someone help me figure this out?

7条回答
叼着烟拽天下
2楼-- · 2019-01-18 02:31

You also need to reference the System.IO.Compression.FileSystem.dll assembly.

查看更多
登录 后发表回答