https://github.com/Azure/azure-webjobs-sdk-script/wiki/Retrieving-information-about-the-currently-running-function描述了EXECUTION_CONTEXT_FUNCTIONDIRECTORY
环境变量。但它不适用于F#功能。另外Microsoft.Azure.WebJobs.ExecutionContext
不提供FunctionDirectory属性。
答案 0 :(得分:1)
此示例函数确认该属性确实存在:
let Run(req: HttpRequestMessage, log: TraceWriter, context: ExecutionContext) =
log.Info context.FunctionDirectory
req.CreateResponse(HttpStatusCode.OK, "Hello")
(在v1运行时的门户网站上测试)