0

I use Azure Functions extensively, and I've been trying do develop some kind of common utilities library for using in Functions projects. I am also attempting do declare some common useful functions that I use accross many projects. As an example, this is a DbLog Activity function for logging in orchestration methods:

[FunctionName(LoggingFunctionNames.DbLog)]
public static void Run([ActivityTrigger] IDurableActivityContext context)
{
    var input = context.GetInput<DbLogInput>();
    Write(input); // writes to database
}

The issue is I wasn't able to make my project identify Functions declared outside itself. Is it possible to do so?

Vitor Durante
  • 950
  • 8
  • 25

1 Answers1

1

While not documented yet. You can set the FunctionsInDependencies property in your csproj file which scans dependencies for functions to load as well.

This was brought up in this SO thread.

PramodValavala
  • 6,026
  • 1
  • 11
  • 30