在我的Azure DevOps组织中,我有两个项目:
项目1:一些工具
项目2:我的应用程序
项目1的构建结果发布到项目1中的一个feed。在VS2019中,我可以使用来自该feed的nuget包在项目2中的应用程序中使用。
但是,当我尝试为项目2设置管道时,我无法加载项目1中的包。
我的管道如下:
Nuget恢复失败并出现以下错误:
项目1的构建结果发布到项目1中的一个feed。在VS2019中,我可以使用来自该feed的nuget包在项目2中的应用程序中使用。
但是,当我尝试为项目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: ...)).
我是否漏掉了任何配置?