« Back
read.

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.

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