Azure / Azure/azure-functions-core-tools
azure function v4 is not detected by vs 2022 for mac
- Dominant language
- C#
- Stars
- 1.5k
- Forks
- 498
- Avg merge
- 4d 20h
- Merged PRs (30d)
- 14
Description
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
```
net6.0
v4
```
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.
Contributor guide
Research direction
Start with the reported Visual Studio for Mac path, `/Applications/Visual Studio (Preview).app/Contents/MonoBundle/AddIns/MonoDevelop.AzureFunctions/azure-functions-cli/`, and inspect how the tool selects its runtime. Compare that behavior with the reported `AzureFunctionsVersion` setting in the csproj. Done means Visual Studio for Mac can use Azure Functions Core Tools v4 when the project requests v4.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, csharp
- Domain
- cli, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100