我正在嘗試使用 ZipFile.OpenRead() 但無論我嘗試多少次,它都無法在程式中作業,無論我使用什么 nugetpackage 或代碼。
我嘗試了 System.IO.Compression.ZipFile.OpenRead() 這沒有用,而是被 Visual Studio 要求使用 ZipArchive。
我同時匯入了 System.IO.Compression.ZipFile 和 System.IO.Compression nuget 包,但仍然沒有任何變化,我還能做什么?
代碼在這里:鏈接,行號。167.
uj5u.com熱心網友回復:
您需要System.IO.Compression.FileSystem在專案中添加對的參考才能獲取System.IO.Compression.ZipFile.
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/485140.html
