How can I access nuget packages hosted in private nuget server in Azure Functions?. Is there any way I can specify my private nuget server info?
Thanks!
Go to Tools > NuGet Package Manager > Package Manager Settings, select Package Manager Sources, and then click the + button. Choose feed Name, set the feed URL to: https://nuget.telerik.com/nuget, and click OK. Create or load your project. Go to Tools > NuGet Package Manager > Manage NuGet Packages for a solution.
In Visual Studio, click Tools > Nuget Package Manager > Package Manager Settings. Select Package Sources and add your private server url in there. After that, when you click Manage Nuget Package for Solution, you will see drop down list on the right side with your private Nuget Server as a Package source.
Krishh,
This is possible using a nuget.config
file as you normally would:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="MyPrivateFeed" value="http://myhost/myfeed" />
... other feeds ...
</packageSources>
<activePackageSource>
<add key="All" value="(Aggregate source)" />
</activePackageSource>
</configuration>
Using Kudu, or another deployment method outlined here, copy that file to either the function folder or wwwroot
(that would apply to all functions) and your config will be used.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With