An Azure service that provides an event-driven serverless compute platform.
Hi @Maurya, Pranjal ,
Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.
Root Cause
Azure Functions supports .NET 10 exclusively through the isolated worker process model. The in-process model was never updated to support .NET 10, so if any part of the project — the SDK reference, the target framework declaration, or the local configuration — still reflects the in-process model, the Functions host cannot resolve a matching runtime, producing this exact error regardless of how recently Core Tools or the Functions extension has been updated.
A secondary and equally common root cause is that the locally cached Azure Functions Tools metadata in Visual Studio (used to determine which runtime builds are available) has not been refreshed since the .NET 10 upgrade, so Visual Studio evaluates the project against an outdated list of supported versions.
Troubleshooting Steps
- Verify the project is configured for the isolated worker model. In the
.csprojfile, confirm:
xml
Note: AzureFunctionsVersion must be lowercase v4. A value of V4 (capitalized) has been confirmed to produce this same error.
- Confirm the correct SDK reference is present. The project should reference
Microsoft.Azure.Functions.Worker.Sdk, version 2.0.5 or later. IfMicrosoft.NET.Sdk.Functionsis still referenced, the project has not fully migrated off the in-process model, which does not support .NET 10 under any configuration. - Update Azure Functions Core Tools to the latest 4.x release, since .NET 10 support was only introduced in recent builds:
npm install -g azure-functions-core-tools@4 --unsafe-perm true
- Verify
local.settings.json. TheFUNCTIONS_WORKER_RUNTIMEvalue must be set to"dotnet-isolated". A residual value of"dotnet"from the prior configuration will cause the host to attempt to resolve an in-process runtime, which does not exist for .NET 10. - Clear the cached Azure Functions Tools metadata in Visual Studio. Close Visual Studio, delete the folder:
%LocalAppData%\AzureFunctionsTools
Reopen the solution and rebuild. Visual Studio will re-download the runtime metadata corresponding to the current project configuration, resolving cases where the tooling cache — rather than the project itself — is the source of the mismatch.
- If the error also occurs during deployment to Azure (rather than only locally), confirm the hosting plan supports .NET 10. .NET 10 is supported on the isolated worker model across all Windows and Linux Functions hosting plans except Linux Consumption. Apps currently on Linux Consumption must migrate to Flex Consumption to run on .NET 10.
Please "upvote" if the information helped you. This will help us and others in the community as well.