找不到"GZipStream"-参考问题 [英] 'GZipStream' could not be found - reference issue

查看:158
本文介绍了找不到"GZipStream"-参考问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法在C#ASP.NET 4.5应用程序中使用GZipStream类.

I can't get to use GZipStream class in my C# ASP.NET 4.5 application.

我得到了错误:

找不到类型或名称空间名称'GZipStream'(您是否缺少using指令或程序集引用?)

The type or namespace name 'GZipStream' could not be found (are you missing a using directive or an assembly reference?)

我尝试使用using System.IO;,但是System.IO.Compression在Visual Studio的参考管理器"中不可用.我右键单击对象名称以查看Visual Studio是否找到了相关的引用,但没有找到.

I tried using using System.IO; but the System.IO.Compression is not available in the "Reference Manager" in visual studio. I right click on the object name to see if Visual Studio finds the relevant reference but it does not.

有什么建议吗?

推荐答案

需要添加对System.dll程序集和using System.IO.Compression命名空间的引用.

Need to add reference to System.dll assembly and using System.IO.Compression namespace.

MSDN: GZipStream类

这篇关于找不到"GZipStream"-参考问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆