[英]Access Nuget Packages hosted in private Nuget server in Azure Functions
How can I access nuget packages hosted in private nuget server in Azure Functions?. 如何在Azure Functions中访问私有nuget服务器中托管的nuget包? Is there any way I can specify my private nuget server info? 有什么办法可以指定我的私人nuget服务器信息吗?
Thanks! 谢谢!
Krishh, Krishh,
This is possible using a nuget.config
file as you normally would: 这可以像通常那样使用nuget.config
文件:
<?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. 使用Kudu或此处概述的其他部署方法,将该文件复制到函数文件夹或wwwroot
(适用于所有函数),并使用您的配置。
There are several posts related to your question if we assume that your private nuget package can be deployed as a simple .Net library: 如果我们假设您的私有nuget包可以部署为一个简单的.Net库,那么有几个与您的问题相关的帖子:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.