azure function v4 is not detected by vs 2022 for mac
See original GitHub issueI 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:
- Created 2 years ago
- Reactions:2
- Comments:5
Top GitHub Comments
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.
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.