Skip to content

Func cli creates .NET 8 project instead of expected .NET 10 when initializing a C# Azure Functions project #4864

@v-ruizh

Description

@v-ruizh

OS: Win 11
Build Version: 20251209.1
.NET SDK: Installed 8.0, 9.0 and 10.0

Repro Steps:

  1. Create a C# project with the func cli using the following commands.
func init --worker-runtime dotnet
func new --template HttpTrigger --name HttpTrigger1
  1. Open "xxx.csproj" file.
  2. Check whether the target framework is "net10.0" or not.

Expect:
The target framework is "net10.0".

Actual:
The target framework is "net8.0".
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions