Aws lambda 在Azure管道中安装AWS lambda工具时选择nuget.org作为源

Aws lambda 在Azure管道中安装AWS lambda工具时选择nuget.org作为源,aws-lambda,azure-devops,yaml,Aws Lambda,Azure Devops,Yaml,我使用下面的任务在我的管道中安装AWS.Lambda.Tools,但是我无法让它使用nuget.org作为源,它继续尝试使用我的内部提要 -任务:Bash@3 投入: targetType:“内联” 脚本:“sudotNet工具安装--工具路径=/usr/bin--添加源=https://api.nuget.org/v3/index.json Amazon.Lambda.Tools--版本4.0.0' 我收到以下错误 sudo dotnet tool install --tool-path=/

我使用下面的任务在我的管道中安装AWS.Lambda.Tools,但是我无法让它使用nuget.org作为源,它继续尝试使用我的内部提要

-任务:Bash@3
投入:
targetType:“内联”
脚本:“sudotNet工具安装--工具路径=/usr/bin--添加源=https://api.nuget.org/v3/index.json Amazon.Lambda.Tools--版本4.0.0'
我收到以下错误

sudo dotnet tool install --tool-path=/usr/bin --add-source=https://api.nuget.org/v3/index.json Amazon.Lambda.Tools --version 4.0.0
========================== Starting Command Output ===========================
/bin/bash --noprofile --norc /home/vsts/work/_temp/8dc54544-e317-472d-99dc-2345f6558e42.sh
/usr/share/dotnet/sdk/5.0.102/NuGet.targets(131,5): error : Unable to load the service index for source https://internalfeed.pkgs.....

如何解决此错误以使脚本成功运行?

在我的测试中发现,如果您不使用私有nuget提要/Azure Devops工件的packageSource引用配置nuget.config,则此脚本将使用Ubuntu代理成功运行

这是这里报道的一个已知问题:和