I've created an Azure Function project in S2017 and added two function classes Func1 & Func2... when I run this it pickup both functions.... Now I've tried moving Func2 into a class library and reference it from the first project... but now func2 is not picked up.... I've tried to move func2 to another Azure Function project and then reference this from the first project.. but again Func2 is not picked up
Is it not possible to reference function in an assembly making them part of my function app??
Azure Functions is a serverless solution that allows you to write less code, maintain less infrastructure, and save on costs. Instead of worrying about deploying and maintaining servers, the cloud infrastructure provides all the up-to-date resources needed to keep your applications running.
Copy the settings file to the root of the Functions project next to the DLL, open a command prompt from there, and run “func start.” The Function will run based off the same trigger it would use if hosted in Azure or it can be manually triggered for testing using a local HTTP endpoint.
Assuming Visual Studio is being used, if you add:
<FunctionsInDependencies>true</FunctionsInDependencies>
to the <PropertyGroup>
in your .csproj it will look for functions in external libraries and generate the correct metadata.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With