Issue with Publishing Necessary Files for third party SDK in Azure Function App

Asif Javaid Chughtai 41 Reputation points
2024-09-05T17:13:24.87+00:00

Hi Teams,

We are working with an Azure Function app where we've integrated the Perfectly Clear SDK, written in .NET with some components in C++ (DLLs) and neural network files with a .pnn extension. The SDK requires that all its DLLs and .pnn files reside in the bin folder of the Azure Function app.

Everything works as expected on our local environment, but when publishing the function app from Visual Studio, only the DLLs are copied to the bin folder, and the .pnn files are excluded. We need all the DLLs and .pnn files to be present in the bin folder for the SDK to function correctly.

We've attempted the following approaches to resolve this:

  1. Publishing from Visual Studio, which builds and uploads a zip file.
  2. Manually copying the necessary files via FTP after connecting to the Function app.

Despite these efforts, the .pnn files are still not getting copied to the bin folder.

Could you provide guidance on how to ensure the .pnn files are included in the bin folder when publishing to Azure?

Thank you

Asif

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,872 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,644 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.