« Back

Custom nuget server for Kudu.

As most of us know, you can setup Continious Delivery with Git and Azure Websites. Ran into a problem today where Kudu (the engine behind Azure Websites) was unable to build and deploy the website.
After opening Kudu for the website "site.scm.azurewebsites.net" and download a dump of the logs I found the reason to be that it couldn't find my private Nuget packages.

To solve this you have to add a custom nuget.config file at the same level as your .sln file. In that you specify where Kudu should look for those nuget packages.

  <add key="All" value="(Aggregate source)" />
  <add key="nuget.org" value="https://www.nuget.org/api/v2/" />
  <add key="mypackagesource" value="https://mypackagesource/nuget/v1/FeedService.svc/" />
<disabledPackageSources />
comments powered by Disqus