.net - How to add a reference of "System.ServiceModel" from Azure Function? -
i calling soap service azure function, , need add reference of system.servicemodel assembly. able add other dependencies using nuget, particular assembly framework assembly, not sure how can add reference of assembly in azure function.
currently getting following compilation error:
error cs0012: type 'clientbase<>' defined in assembly not referenced. must add reference assembly 'system.servicemodel, version=4.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089'.
copying assembly bin folder using kudu last thing want try :)
any suggestions on better approach this?
thanks , regards,
nirman
https://docs.microsoft.com/en-us/azure/azure-functions/functions-reference-csharp
you can refer system assemblies #r "assemblyname" directive
#r "system.web.http" using system.net; using system.net.http; using system.threading.tasks;
public static task run(httprequestmessage req, tracewriter log)
Comments
Post a Comment