Running Azure functions locally gives "There is no functions runtime available that matches the version specified in the project"

dev3
dev3
154 Points
3 Posts

Recently, I updated VS 2024 to latest version (say: 17.10.3). Now when trying to debug Azure Functions locally getting following error:

There is no functions runtime available that matches the version specified in the project

Using function version: 4.0:

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>net8.0</TargetFramework>
    <AzureFunctionsVersion>v4</AzureFunctionsVersion>
   <OutputType>Exe</OutputType>
   <ImplicitUsings>enabled</ImplicitUsings>
</PropertyGroup>

 

Views: 176
Total Answered: 1
Total Marked As Answer: 0
Posted On: 26-Jul-2024 02:45

Share:   fb twitter linkedin
Answers
Smith
Smith
2830 Points
78 Posts
         

Review Github issue, mentioned in the comment. It is possible that VS failed to automatically update the azure functions tools to latest version. But you can do manually using options dialog as follow:

  1. Tools -> Options -> Projects & Solutions -> Azure functions and click on the "Check for updates" button.
  2. Install the updates as needed.
  3. Restart Visual Studio and try to create a new Azure functions project and you should see ".NET Framework Isolated" in the functions worker dropdown.
Posted On: 26-Jul-2024 03:23
 Log In to Chat