我无法在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"
发布评论