Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio detect the old Azure Functions core tools version

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:

  • Visual Studio 2022
  • Windows 11
  • .NET Core 2.2

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.

like image 531
Buddhika Chathuranga Avatar asked Dec 08 '25 06:12

Buddhika Chathuranga


1 Answers

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.

enter image description here

like image 91
Gopal Krishnan Avatar answered Dec 09 '25 18:12

Gopal Krishnan



Donate For Us

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