1

I've just started upgrading my functionapps to .NET 7. I've updated them all to use the .NET 7 SDK and all of the Microsoft.Extensions.X deps in my project to 7.0.0.

I'm getting this error:

Could not load file or assembly 'Microsoft.Extensions.Configuration.Abstractions, Version=7.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified. .

Having had similar issues when upgrading to .NET 6, I had to upgrade my functions to the V4 runtime.

However, they're already on the V4 runtime and this table suggests that V4 supports .NET 7.

Table from MS

Is this a case of Microsoft just not having updated all of its function runners or am I missing something?

ScottishTapWater
  • 3,656
  • 4
  • 38
  • 81
  • Could you please provide details such as how you're upgrading (`.csproj` code) and the dependencies you have in .NET 6 with brief code/functionality –  Nov 09 '22 at 10:00
  • There are lot of change differences between .NET 6 Isolated to .NET 7 Isolated in Azure Functions. Have you gone through this Migration of .NET 6 to .NET Isolated worker of Azure Functions [MS Doc](https://learn.microsoft.com/en-us/azure/azure-functions/migrate-version-3-version-4?tabs=net7%2Cazure-cli%2Cwindows&pivots=programming-language-csharp)? –  Nov 09 '22 at 11:14
  • @HariKrishna - No, I don't think we're running on Isolated workers. The upgrade has been changing the target framework in the csproj from net6.0 -> net7.0 – ScottishTapWater Nov 09 '22 at 14:15
  • Current month Update - .NET 7 in Azure Functions is supported by leveraging the .NET Isolated Worker process. as mentioned in this Microsoft TechCommunity [article](https://techcommunity.microsoft.com/t5/apps-on-azure-blog/announcing-the-net-7-for-azure-functions-isolated-worker-process/ba-p/3671398) –  Nov 09 '22 at 15:26

1 Answers1

3

The Table of which you have shown providing the general details like Compatible Runtime Languages & Versions with Azure Functions but not the In-Process or Out-of-Process Type.

Current month Update - .NET 7 in Azure Functions is supported by leveraging the .NET Isolated Worker process. as mentioned in this Microsoft TechCommunity article

If you click on the .NET 7.0 shown in the same table, you will see another table like .NET 7.0 came in Isolated Worker Process.

enter image description here