System.IO.Compression.FileSystem.dll在C#程序中 [英] System.IO.Compression.FileSystem.dll in c# program

查看:220
本文介绍了System.IO.Compression.FileSystem.dll在C#程序中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用dll >


命名空间:System.IO.Compression

程序集: System.IO.Compression.FileSystem(在System.IO.Compression.FileSystem.dll中)

所以你需要包含的命名空间是 System.IO.Compression 不是 System.IO.Compression.FileSystem 。从部分使用语句取出 FileSystem 部分,它将解决您的问题。






如果有人投我票,因为OP说问题是没有找到dll。我认为OP没有使用正确的单词选择,如果问题确实是无法找到DLL,那么原始屏幕截图没有的程序集名称会有一个感叹号。

请参阅下面的原始图片



(点击查看大图)



将我的屏幕截图与我创建的屏幕截图进行比较,如果找不到DLL,请注意感叹号,原始屏幕截图没有。




I' like to use the dll System.IO.Compression.FileSystem.dll in my project

the .net framework version is 4.5 and the os is 64. The problem is that the dll is not found. What is the solution?

解决方案

The namespace is not the same as the dll name (assembly name). from the MSDN page you linked

Namespace: System.IO.Compression
Assembly: System.IO.Compression.FileSystem (in System.IO.Compression.FileSystem.dll)

So the namespace you need to include is System.IO.Compression not System.IO.Compression.FileSystem. Take off the FileSystem part from your using statement and it will solve your problem.


If people are down-voting me because the OP said "The problem is that the dll is not found." I think the OP is not using the correct word choice, if the problem really was that the DLL could not be found there would be a exclamation point by the assembly name which the original screenshot does not have

See the original image below


(click for larger view)

Compare that to my screenshot I created that would show up if the DLL really was not found, note the exclamation point I have that the original screenshot does not.

这篇关于System.IO.Compression.FileSystem.dll在C#程序中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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