我喜欢使用 dll系统.IO.压缩.文件系统.dll http://msdn.microsoft.com/en-us/library/system.io.compression.zipfile.aspx在我的项目中
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?
命名空间与 dll 名称(程序集名称)不同。从您链接的 MSDN 页面 http://msdn.microsoft.com/en-us/library/system.io.compression.zipfile.aspx
命名空间:系统.IO.压缩
Assembly:System.IO.Compression.FileSystem(在System.IO.Compression.FileSystem.dll中)
所以你需要包含的命名空间是System.IO.Compression
not System.IO.Compression.FileSystem
。脱下FileSystem
一部分从你的using
声明,它将解决您的问题。
如果人们因为 OP 说“问题是找不到 dll”而对我投反对票。我认为OP没有使用正确的单词选择,如果问题确实是找不到DLL,则程序集名称旁边会有一个感叹号,而原始屏幕截图中没有
请参阅下面的原图
(click for larger view)
将其与我创建的屏幕截图进行比较,如果确实未找到 DLL,该屏幕截图将会显示,请注意原始屏幕截图中没有的感叹号。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)