简体   繁体   English

访问Azure功能中的私有Nuget服务器中托管的Nuget包

[英]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 (适用于所有函数),并使用您的配置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM