Zipfile类未经视觉工作室认可
我正在尝试使用zipfile.openread(),但是无论我尝试使用多少nugetpackage或我使用的代码,我尝试过多的方法都无法使用。
我尝试了system.o.compression.zipfile.openread()这不起作用,而是由Visual Studio要求我使用Ziparchive。
我导入system..compression.zipfile和system.io.com.pression nuget软件包,但仍然没有变化,我还能做什么?
代码在这里:链接,第1行。 167。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要在项目中将参考添加到
system..compression.filesystem
中,以获取system.io.compression.zipfile
。You need to add a reference to
System.IO.Compression.FileSystem
in your project to getSystem.IO.Compression.ZipFile
.