Issue with loading custom assemblies from custom NuGet feed in Azure Function

Robert 1 Reputation point
2021-08-03T20:39:35.437+00:00

I am building an Azure Function on Azure Portal. My function needs to use a few custom assemblies, which come from a custom NuGet feed. So I uploaded 2 config files following this doc https://learn.microsoft.com/en-us/azure/azure-functions/functions-reference-csharp#referencing-external-assemblies.

  1. uploaded a function.proj file containing the assemblies and versions to the function's folder
  2. uploaded a Nuget.Config file containing the location of my custom feed in the Function App root(wwwroot)

However, seems Nuget.Config cannot be loaded properly as Azure keeps saying the assemblies not found in nuget.org, instead of my custom feed. Also, I am unable to view this file on Azure Portal. It keeps saying failed to fetch the file content when I try to view it from MY_FUNCTION_APP > Functions > App files.

Does anyone have ideas on this? Thanks.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,862 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Samara Soucy - MSFT 5,141 Reputation points
    2021-08-11T16:34:24.87+00:00

    It looks like this is a known issue for csx functions specifically- pre-compiled C# functions don't have this issue.

    Here is the open issue on Github: https://github.com/Azure/azure-functions-host/issues/3622

    Since this has not seen any movement for awhile, I would encourage you to comment on the issue including the impact for you. If you cannot use a pre-compiled function and this is a complete blocker for you that would be especially important to note.

    0 comments No comments

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.