访问 Azure Functions 中私有 Nuget 服务器中托管的 Nuget 包 [英] Access Nuget Packages hosted in private Nuget server in Azure Functions

查看:35
本文介绍了访问 Azure Functions 中私有 Nuget 服务器中托管的 Nuget 包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何访问 Azure Functions 中私有 nuget 服务器中托管的 nuget 包?有什么方法可以指定我的私有 nuget 服务器信息?

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?

谢谢!

推荐答案

Krishh,

这可以像往常一样使用 nuget.config 文件:

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>

使用 Kudu 或在此处列出的其他部署方法,将该文件复制到函数文件夹或 wwwroot(适用于所有函数),然后将使用您的配置.

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.

这篇关于访问 Azure Functions 中私有 Nuget 服务器中托管的 Nuget 包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆