question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

azure function v4 is not detected by vs 2022 for mac

See original GitHub issue

I have installed Azure function v4 and ie the default runtime for the azure function-core tools. But while debugging the azure function using VS 2022 for Mac it is starting the azure function v3 and while looking at the source it seems it is using different azure CLI from addins that come with part of visual studio 2022. Any way we can select our own version of azure function runtime like how VS Code provides instead of relying on VS 2022 mac provided azure function is not latest?

VS 2022 for windows is taking care of this automatically if I specify below in csproj, expecting the same from VS 2022 for ma

<PropertyGroup>
  <TargetFramework>net6.0</TargetFramework>
  <AzureFunctionsVersion>v4</AzureFunctionsVersion>
</PropertyGroup>

In the logs I can see that VS for Mac is trying to load different Azure CLI : '/Applications/Visual Studio (Preview).app/Contents/MonoBundle/AddIns/MonoDevelop.AzureFunctions/azure-functions-cli/

It is bad that Visual Studio is not upto date with Azure Function core run times. It should have features like VS Code to choose whichever azure function run time.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:2
  • Comments:5

github_iconTop GitHub Comments

1reaction
milkyjoe90commented, Feb 9, 2022

Thanks Dan, I have tried doing this several times, uninstalled both VS and the core tools and reinstalled unfortunately with no positive effect. I presume that core-tools v3 is bundled with the preview of VS 2022 for Mac and that the homebrew install doesn’t touch it.

0reactions
OYFEKcommented, May 25, 2022

I had the same issue. I uninstalled EVERY SDK and runtime .net version also the versions that was used by VS and reinstalled VS2022 that fixed it for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

azure function v4 is not detected by default by vs 2022 for ...
I have installed Azure funciton v4 and ie the default runtime for the azure function core tools. But while debugging the azure funciton ......
Read more >
Azure Functions on MacOs - Visual Studio for Mac
Azure Functions is a way to create and run event-driven snippets of code –– functions –– in the cloud, without having to explicitly...
Read more >
Tutorial: Azure Functions & Visual Studio for Mac
A detailed walkthrough of working with Azure Functions in Visual Studio for Mac.
Read more >
Work with Azure Functions Core Tools
Learn how to code and test Azure Functions from the command prompt or terminal on your local computer before you run them on...
Read more >
Troubleshoot Python errors in Azure Functions
This article provides information to help you troubleshoot errors with your Python functions in Azure Functions. This article supports both ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found