如何将自定义NuGet提要与Azure Functions一起使用? [英] How do you use custom NuGet feeds with Azure Functions?

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

问题描述

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

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文件放在函数文件夹或Function App根目录(用于所有功能的目录)中

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

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

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