ExecutionContext does not contain 'FunctionAppDirectory' in Azure Function

Viewed 2858

I'm passing in ExecutionContext into my Azure Function and I want to pull up the

context.FunctionAppDirectory

but intellisense doesn't have it. See pic below. When I debug and step to it, I can see it, but it's not there under intellisense.

enter image description here

Trying to get FunctionAppDirectory

enter image description here

Here is the breakpoint in the debugger where I can see it exists.

enter image description here

I tried cleaning the solution, rebuilding and restarting but none of those worked.

1 Answers

FunctionAppDirectory was introduced in version 1.0.4 of Microsoft.NET.Sdk.Functions, so upgrade your NuGet package dependency.

Related