我在使用 C# 脚本编写的 Azure 门户功能应用程序中遇到错误。
错误CS0103:名称“ZipFile”在当前上下文中不存在
我尝试使用 nuget.exe 安装 System.IO.Compression.FileSystem.dll,但我也无法添加该包。错误如下。
D:\home\site\wwwroot 找不到包 'System.IO.Compression.FileSystem.dll'
请帮助我。
谢谢。
最佳答案
添加程序集并导入命名空间,如下所示。它在我这边有效。
#r "System.IO.Compression.FileSystem"
using System.IO.Compression;
关于c# - Azure Function App - 引用外部库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50442673/