找不到"GZipStream"

编程入门 行业动态 更新时间:2024-10-24 16:30:10
本文介绍了找不到"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"

本文发布于:2023-11-07 06:36:34,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1565787.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:找不到   quot   GZipStream

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!