【发布时间】:2020-04-23 12:43:07
【问题描述】:
在我的 Azure DevOps 组织中,我有 2 个项目: 项目 1:一些工具 项目 2:我的应用程序
项目 1 的构建结果发布到项目 1 中的提要。在 VS2019 中,我可以在项目 2 的应用程序中使用该提要中的 nuget 包。 当我尝试为项目 2 设置管道时,我无法从项目 1 加载包。
我的管道看起来像:
steps:
- task: NuGetAuthenticate@0
- task: NuGetToolInstaller@1
- task: NuGetCommand@2
inputs:
command: 'restore'
restoreSolution: '**/*.sln'
feedsToUse: 'select'
vstsFeed: ***FEED_ID***
- task: VSBuild@1
inputs:
solution: '$(solution)'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
nuget 还原失败并出现错误:
##[error]The nuget command failed with exit code(1) and error(Unable to load the service index for source https://***organization***.pkgs.visualstudio.com/***FEED_ID***/_packaging/***PACKAGE_ID***/nuget/v3/index.json.
Response status code does not indicate success: 404 (Not Found - VS800075: The project with id 'vstfs:///Classification/TeamProject/FEED_ID' does not exist, or you do not have permission to access it. (DevOps Activity ID: ...)).
我是否缺少任何配置?
【问题讨论】:
-
这个问题怎么样?下面的答案是否解决了您的问题,如果是,您可以接受它作为答案,这样它可以帮助遇到同样问题的其他社区成员,我们可以存档这个帖子,谢谢。如果没有,请告诉我们您是否需要进一步的帮助。
标签: azure azure-devops nuget azure-pipelines