We are looking to implement reusable functionality within more than one of our products.
What I would like to do is:
- Create a C# project that contains one or more Azure Functions (static methods with the FunctionNameAttribute attached to them)
- Turn this project into a NuGet package
- Reference this NuGet package in an Azure Functions project
- Have the function(s) from the NuGet package exposed in the project it is being used in
Whilst I find that it all compiles, the functions in the NuGet package are not "found" on startup and are ignored. I can see that this could be desirable for security reasons, but I'm wondering if there is a way to overwrite how the functions runtime operates to say "scan this assembly and use any functions contained within it".
Even having that custom code would be preferable to the situation in which we find ourselves - having joint functionality in our package that is referenced by two different products, but each of the products having to create a duplicate set of functions that then call the common code.