如何在 Azure Functions 中使用自定义 NuGet 源? [英] How do you use custom NuGet feeds with Azure Functions?

查看:18
本文介绍了如何在 Azure Functions 中使用自定义 NuGet 源?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道您可以创建一个 project.json 文件来将 NuGet 包添加到您的函数中,但是如何指定我希望它们从哪个提要中提取?

I know you can create a project.json file to add NuGet packages to your functions, but how can I specify what feed I want them pulled from?

推荐答案

Azure 函数支持标准 nuget.config 方法来设置自定义源.您可以将带有自定义源的 nuget.config 文件放在函数文件夹或函数应用根目录中(它将用于所有函数)

Azure functions supports the standard nuget.config approach to setup custom sources. You can place a nuget.config file with your custom sources either in your function folder or in the Function App root (where it will be used for all functions)

您可以在此处找到有关文件格式和指定自定义源的更多信息:https://docs.nuget.org/consume/nuget-config-file#package-sources

You can find more information about the file format and specifying custom sources here: https://docs.nuget.org/consume/nuget-config-file#package-sources

这篇关于如何在 Azure Functions 中使用自定义 NuGet 源?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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