C# 检查DevOps管道中过时的nuget包

C# 检查DevOps管道中过时的nuget包,c#,nuget,devops,build-pipeline,C#,Nuget,Devops,Build Pipeline,我正在检查我们的一个构建管道中是否有过时的包。使问题复杂化的是,我们使用的是来自nuget.org的包以及来自我们自己的存储库(DevOps工件提要)的包。这些源在nuget.config中配置。包还原任务成功,没有任何问题: - task: NuGetCommand@2 displayName: Restore Nuget Packages inputs: command: 'restore' restoreSolution: '**/*.sln' feedsT

我正在检查我们的一个构建管道中是否有过时的包。使问题复杂化的是,我们使用的是来自nuget.org的包以及来自我们自己的存储库(DevOps工件提要)的包。这些源在nuget.config中配置。包还原任务成功,没有任何问题:

- task: NuGetCommand@2
  displayName: Restore Nuget Packages
  inputs:
    command: 'restore'
    restoreSolution: '**/*.sln'
    feedsToUse: 'config'
    nugetConfigPath: 'nuget.config'
完成此步骤后,我们将安装dotnet过时工具:

- task: DotNetCoreCLI@2
  displayName: install dotnet-outdated-tool
  inputs:
    command: 'custom'
    custom: 'tool'
    arguments: 'install dotnet-outdated-tool -g --ignore-failed-sources'
请注意,我们已经在此处添加了--ignore failed sources选项,否则该工具将无法正确安装,因为它会抱怨无法访问我们的提要,但我们可以通过添加--ignore failed sources来获得通过

关于我的问题,下一步也是最重要的一步是,我们在哪里尝试运行过时的工具来检查过时的包:

- task: DotNetCoreCLI@2
  displayName: Check outdated packages
  inputs:
    command: 'custom'
    custom: 'outdated'
    arguments: '$(pathTosolution)'
  env:
      SYSTEM_ACCESSTOKEN: $(System.AccessToken)
对于nuget.org的软件包来说,这似乎很好:

  Microsoft.Extensions.DependencyInjection  5.0.0  -> 5.0.1 
  Microsoft.NET.Test.Sdk                    16.7.1 -> 16.9.1
  MSTest.TestAdapter                        2.1.1  -> 2.2.1 
对于来自我们自己的源的包,它无法解析最新版本:

Some.Internal.Component            1.22.0        ->     
它还提到:

Errors occurred while analyzing dependencies for some of your projects. Are you sure you can connect to all your configured NuGet servers?
很明显,它无法连接到我们的内部nuget提要。 尝试通过向任务添加系统访问令牌来解决此问题:system\u ACCESSTOKEN:$(system.ACCESSTOKEN) 但不幸的是,这并不能解决任何问题。我错过了什么