Reputation: 85
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.
Upvotes: 0
Views: 342
Reputation: 85
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.
Upvotes: 0