问题描述
我知道您可以创建一个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一起使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!