Skip to content

Unable to run Azure Functions Core Tools on Azure DevOps with .NET 10 #4757

@yijielee

Description

@yijielee

I have an issue when trying to run the Azure Functions Core Tools on Azure DevOps. It seems to be unable to start. I have a fairly basic YAML file for a pipeline to recreate.

pool:
  vmImage: "windows-latest"

jobs:
  - job: dotnet10
    steps:
      - script: |
          dotnet --list-sdks
          dotnet --list-runtimes
        displayName: 'List .NET stuff'

      - task: FuncToolsInstaller@0
        displayName: "Install Azure Functions Core Tools"

      - script: |
          func init MyFunctionProj10 --worker-runtime dotnet-isolated --target-framework net10.0
          cd MyFunctionProj10
          func new --template "Http Trigger" --name MyHttpTrigger
          func start --verbose
        displayName: 'Function Project .NET 10'
        timeoutInMinutes: 5

The logs for the script task when calling the Azure Functions Core Tools can be found in 8.txt.

I didn't seem to have the same issue when I changed the target framework to net9.0 or net8.0. I also didn't have any issues when running the same commands targetting net10.0 locally on my PC.

I'm also wary that there might be something not right with the Azure DevOps FuncToolsInstaller@0 task or the Microsoft-hosted agent based on it trying to look for x86 but I thought I would start here to begin with.

Any help would be appreciated. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions