8

I don’t see .NET 7 Isolated as an option when I try to create a new Azure Functions app in Visual Studio 17.4 (Windows version).

Any idea why?

1
  • Have you tried this? Delete %LocalAppData%\AzureFunctionsTools folder and relauch your Visual Studio Commented Apr 25, 2023 at 11:53

1 Answer 1

9

To use the Isolated model, you shall set your environment variable FUNCTIONS_WORKER_RUNTIME to dotnet-isolated and use these NuGet packages:

  • Microsoft.Azure.Functions.Worker
  • Microsoft.Azure.Functions.Worker.Sdk

More info here and especially here, where you can find lot of samples (with .NET7 too!)

Sign up to request clarification or add additional context in comments.

6 Comments

Is it even possible to create the template with visual studio? This answer is not helping me so far as I get "There is no Functions runtime available that matches the version specified in the project"
@NorbertHuurnink I can't see the option for dotnet7 in template creation, but you can choose the dotnet6 (Isolated) one and then manually upgrade the csproj to net7.0
@Krusty when I do that (manually upgrade to net7.0) I get a build error "Invalid combination of TargetFramework and AzureFunctionsVersion is set"
@Alain Does your csproj file target both v4 function version and net7? <TargetFramework>net6.0</TargetFramework> <AzureFunctionsVersion>v4</AzureFunctionsVersion>
Any updates on this? I also cannot see any options to create a .NET 7 Azure Function in Visual Studio 17.5.4 and I have the latest Azure Functions Core tools and .NET 7 SDK installed.
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.