No Job Functions Found

The following error warning gets me every time I am working with Azure Functions in Visual Studio Code when I run func start:

No job functions found. Try making your job classes and methods public. If you’re using binding extensions (e.g. ServiceBus, Timers, etc.) make sure you’ve called the registration method for the extension(s) in your startup code (e.g. config.UseServiceBus(), config.UseTimers(), etc.).

Figure 1 – Visual Studio Code Output

I am developing my Azure Functions as a C# class library project (.csproj), which means, I must include the –build option to generate the library .dll. So when I run func start –build, my world is again filled with rainbows and unicorns.

Figure 2 – Visual Studio Code Output With Unicorn

Recommended resources

5 Replies to “No Job Functions Found”

  1. If you debug/run from Visual Studio, somehow, even with latest Microsoft.NET.Sdk.Functions (v1.0.28), its not able to detect AzureFunctions defined in the project.

    I root caused the issue to Project properties > Debug > Working Directory is not set. Set it to the actual directory where binaries are found and your AzureFunctions becomes available for debug.

    PS, this would add launchSettings.json /profiles/workingDirectory=/objd/amd64/

    ![image](https://user-images.githubusercontent.com/3484074/59544356-f0226c00-8ec5-11e9-9fc3-eeeab5e9b5bf.png)

Leave a Reply

Your email address will not be published.