Isolated Azure Function Isolated model generated by Azure function core Tools 4.0.5198 does not work

290 Views Asked by At

I used Azure function core tools (version 4.0.5198) to created an isolated function as commands below:

func init LocalFunctionProj --worker-runtime dotnet-isolated --target-framework net7.0

cd ./LocalFunctionProj

func new --name HttpExample --template "HTTP trigger" --authlevel "anonymous"

The project and function code were generated and built successfully, but when I run with command

func start

then it said that

"No job functions found. Try making your job classes and methods public. If you're using binding extensions (e.g. Azure Storage, ServiceBus, Timers, etc.) make sure you've called the registration method for the extension(s) in your startup code (e.g. builder.AddAzureStorage(), builder.AddServiceBus(), builder.AddTimers(), etc.)."

Can you please share your solution if possible please. Thank you.

1

There are 1 best solutions below

0
On

I've found reason why, because of the nuget package cache from this %userprofile%.nuget\packages Clean up everything related to Worker Functions will make it work.