Zipfile类未经视觉工作室认可

发布于 2025-02-03 22:23:31 字数 479 浏览 0 评论 0 原文

我正在尝试使用zipfile.openread(),但是无论我尝试使用多少nugetpackage或我使用的代码,我尝试过多的方法都无法使用。

我尝试了system.o.compression.zipfile.openread()这不起作用,而是由Visual Studio要求我使用Ziparchive。

我导入system..compression.zipfile和system.io.com.pression nuget软件包,但仍然没有变化,我还能做什么?

代码在这里:链接,第1行。 167。

I am trying to use ZipFile.OpenRead() but the thing is no matter how much i try it is not working in the program, whatever nugetpackage or code i use.

I tried System.IO.Compression.ZipFile.OpenRead() this did not work, instead I was asked to use ZipArchive by visual studio.

I imported both System.IO.Compression.ZipFile and System.IO.Compression nuget packages but still there is no change, what more can i do?

The code is here: Link, Line no. 167.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

丑丑阿 2025-02-10 22:23:31

您需要在项目中将参考添加到 system..compression.filesystem 中,以获取 system.io.compression.zipfile

You need to add a reference to System.IO.Compression.FileSystem in your project to get System.IO.Compression.ZipFile.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文