.net 如何添加“引用”;System.ServiceModel“;来自Azure功能?
我正在从Azure函数调用SOAP服务,为此我需要添加System.ServiceModel程序集的引用。我可以使用Nuget添加其他依赖项,但由于此特定程序集是框架程序集,因此不确定如何在Azure函数中添加此程序集的引用 目前我遇到以下编译错误: 错误CS0012:类型“ClientBase” 在未引用的程序集中定义。您必须添加一个 引用程序集'System.ServiceModel,版本=4.0.0.0, 区域性=中性,PublicKeyToken=b77a5c561934e089' 使用Kudu将该程序集复制到bin文件夹将是我最不想尝试的事情:) 有没有关于更好的方法的建议 感谢和问候 尼尔曼 您可以通过#r“AssemblyName”指令引用系统程序集.net 如何添加“引用”;System.ServiceModel“;来自Azure功能?,.net,azure,azure-functions,azure-logic-apps,kudu,.net,Azure,Azure Functions,Azure Logic Apps,Kudu,我正在从Azure函数调用SOAP服务,为此我需要添加System.ServiceModel程序集的引用。我可以使用Nuget添加其他依赖项,但由于此特定程序集是框架程序集,因此不确定如何在Azure函数中添加此程序集的引用 目前我遇到以下编译错误: 错误CS0012:类型“ClientBase” 在未引用的程序集中定义。您必须添加一个 引用程序集'System.ServiceModel,版本=4.0.0.0, 区域性=中性,PublicKeyToken=b77a5c561934e089' 使用
#r "System.Web.Http"
using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
公共静态任务运行(HttpRequestMessage请求、TraceWriter日志)