I have an Azure Function project and I want to run the project with Azure Functions Core Tools v4.x. But Visual Studio is always selecting Azure Functions Core Tools 2.6. With that, I am getting the following error:
You are using an outdated version of the Azure Functions Core Tools. For more information, please see: https://aka.ms/func-v2-upgrade
I deleted all Azure Functions Core Tools runtimes in %LocalData%/AzureFunctionTools/Releases/. But again when I run the project, Azure Function Tools 2.6 version is getting installed.
How to change this to use the 4.x version?
I am using:
Update:
I found this article on the internet. But just adding a new function to the project did not work for me. But when I create a new project, it selects the latest version of Azure Function Core Tools 4.x . I still don't know how to do this for an existing project.
In my case, visual studio 2022, was using an older version of functions runtime, despite installing newer versions.
This came from the following folder: C:\Users<username>\AppData\Local\AzureFunctionsTools
Even upon deleting the folder contents they were regenerated everytime but only to the older version.
I had to goto visual studio settings, where I found a way to update to the latest version of the functions tool. There was no notification anywhere else asking me to upgrade.

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With