0

I'm developing an Azure Function using C# and I had to use a NuGet package called NetOffice.

I finished mu function and published it on Azure portal, but when i run it for testing, i get an error that the package i used is not installed.

I want clear and step by step guide to know how to install the package in Azure portal OR how to publish my function with all its packages from Visual Studio.

Thanks

  • https://stackoverflow.com/questions/36411536/how-can-i-use-nuget-packages-in-my-azure-functions – Narthring Mar 14 '23 at 19:18
  • Plenty of doco on this … https://learn.microsoft.com/en-us/azure/azure-functions/functions-reference-csharp?tabs=functionsv2#using-nuget-packages – Skin Mar 14 '23 at 20:01

1 Answers1

0

AFAIK, If you have installed the NuGet packages in your Azure function in visual studio and deploy to the Azure portal, it should work fine.

I have reproduced your requirement by taking a sample Azure function and deployed to Azure portal. It’s working fine as expected and I could see the packages installed.

enter image description here

If any package is missing, it might be deployment not happened properly and you can see the required packages used in the local Azure Functions Project in Azure Portal Function App Kudu Site > Debug Console > C:\home\site\wwwroot\bin>

enter image description here

If any NuGet Package or reference assembly is missing, you can upload them here by clicking on + Symbol.
Refer to this article from savran’s blog for more information.

Pravallika KV
  • 2,415
  • 2
  • 2
  • 7