Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net 如何添加“引用”;System.ServiceModel“;来自Azure功能?_.net_Azure_Azure Functions_Azure Logic Apps_Kudu - Fatal编程技术网

.net 如何添加“引用”;System.ServiceModel“;来自Azure功能?

.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' 使用

我正在从Azure函数调用SOAP服务,为此我需要添加System.ServiceModel程序集的引用。我可以使用Nuget添加其他依赖项,但由于此特定程序集是框架程序集,因此不确定如何在Azure函数中添加此程序集的引用

目前我遇到以下编译错误:

错误CS0012:类型“ClientBase” 在未引用的程序集中定义。您必须添加一个 引用程序集'System.ServiceModel,版本=4.0.0.0, 区域性=中性,PublicKeyToken=b77a5c561934e089'

使用Kudu将该程序集复制到bin文件夹将是我最不想尝试的事情:)

有没有关于更好的方法的建议

感谢和问候

尼尔曼

您可以通过#r“AssemblyName”指令引用系统程序集

#r "System.Web.Http"

using System.Net;
using System.Net.Http;
using System.Threading.Tasks;
公共静态任务运行(HttpRequestMessage请求、TraceWriter日志)