azure-functions-core-tools icon indicating copy to clipboard operation
azure-functions-core-tools copied to clipboard

Update default target framework to .NET 10 for dotnet-isolated

Open Copilot opened this issue 3 months ago • 0 comments

Changes the default target framework from .NET 8 to .NET 10 when running func init --worker-runtime dotnet-isolated without an explicit --target-framework flag.

Changes

  • Updated DefaultTargetFramework constant from Net8 to Net10 in InitAction.cs
  • Kept DefaultInProcTargetFramework as Net8 (only Net6/Net8 supported for in-proc)
  • Updated test expectation for default docker image to dotnet-isolated10.0

Users can still explicitly specify any supported framework (net6.0, net7.0, net8.0, net9.0, net10.0) via --target-framework.

[!WARNING]

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • azfunc.pkgs.visualstudio.com
    • Triggering command: /usr/bin/dotnet dotnet restore (dns block)
    • Triggering command: /usr/bin/dotnet dotnet build src/Cli/func/Azure.Functions.Cli.csproj --no-restore (dns block)
    • Triggering command: /opt/hostedtoolcache/CodeQL/2.23.3/x64/codeql/csharp/tools/linux64/Semmle.Autobuild.CSharp /opt/hostedtoolcache/CodeQL/2.23.3/x64/codeql/csharp/tools/linux64/Semmle.Autobuild.CSharp (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>Update default target framework to .NET 10</issue_title> <issue_description>### Description

Once the service is fully updated to support .NET 10, we should move the default target framework for func init to use it.</issue_description>

<agent_instructions>https://github.com/Azure/azure-functions-core-tools/blob/0130b8b5418110c3a5bfac48b8cf82df7e14fb1a/src/Cli/func/Actions/LocalActions/InitAction.cs#L25</agent_instructions>

Comments on the Issue (you are @copilot in this section)

@liliankasem The value to determine this is here:

https://github.com/Azure/azure-functions-core-tools/blob/0130b8b5418110c3a5bfac48b8cf82df7e14fb1a/src/Cli/func/Actions/LocalActions/InitAction.cs#L25</comment_new>

  • Fixes Azure/azure-functions-core-tools#4717

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot avatar Nov 20 '25 21:11 Copilot