Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 20, 2025

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>

private const string DefaultTargetFramework = Common.TargetFramework.Net8;
</agent_instructions>

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

@liliankasem The value to determine this is here:

private const string DefaultTargetFramework = Common.TargetFramework.Net8;
</comment_new>


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

Co-authored-by: liliankasem <2198905+liliankasem@users.noreply.github.com>
Copilot AI changed the title [WIP] Update default target framework to .NET 10 Update default target framework to .NET 10 for dotnet-isolated Nov 20, 2025
Copilot AI requested a review from liliankasem November 20, 2025 21:43
Copilot finished work on behalf of liliankasem November 20, 2025 21:43
@liliankasem liliankasem marked this pull request as ready for review November 24, 2025 23:29
@liliankasem liliankasem requested a review from a team as a code owner November 24, 2025 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update default target framework to .NET 10

3 participants