During a recent migration between Azure tenants, I encountered the dreaded
Unhandled Exception: System.IO.DirectoryNotFoundException: The path `C:\REPOS\AzureFunctionsProject\obj\Release\net461\PubTmp\Out\bin` does not exist. Unable to generate Azure Functions extensions metadata file.
error when I tried to publish an Azure Function to the new tenant. And quite correctly, the ‘bin’ folder does not exist.
My “Microsoft.NET.Sdk.Functions” Version was “1.0.24” and it worked for me to follow the advise below to change that to use version 1.0.26 (by editing the .csproj file directly)
I probably ought to have tried with the newest version of the SDK, but time constraints in the project did not allow that.