Azure / Azure/Azure-Functions

.NET 6 doesn't show up with other versions in new Azure Function experience in VS Code

Open
#2,073 2 comments 0 reactions 2 assignees Claimed by @nzthiago View on GitHub
v4-bug
Dominant language
PowerShell
Stars
1.1k
Forks
215
Avg merge
4h 2m
Merged PRs (30d)
1

Description

Function App name: N/A
Tools used: VS Code, Azure Functions Extension, Azure Functions Core Tools
New V4 app or existing V3 app migrated to V4: N/A

Once I installed the Core Tools v4, I restarted VS Code and tried creating a new C# Azure Function. But in the drop down to choose the .NET version it still only showed the .NET Core 3 and .NET 5 options:
![image](https://user-images.githubusercontent.com/1563288/138360879-91f0b06d-a4ff-4a0d-bad7-5378dc4ef5b3.png)

I had to go into Preferences and change the Default Functions Version to V4 before .NET 6 showed up:
![image](https://user-images.githubusercontent.com/1563288/138360992-1b672c12-6b1c-4f43-b9c9-f10d4598b5a3.png)

If this is the expected behavior, it should likely be documented, especially in the VS Code First Function tutorial https://docs.microsoft.com/en-us/azure/azure-functions/create-first-function-vs-code-csharp?pivots=programming-runtime-functions-v4

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.