【发布时间】:2021-11-19 17:30:23
【问题描述】:
我是使用 Azure DevOps 的新手。 我正在尝试创建一个管道以编译 Visual Studio 2022 解决方案。 为此,我必须从远程服务器 (https://api.nuget.org/v3/index.json) 以及本地目录(存储在我的存储库中的包)安装 NuGet 包。 这是我的 Yaml 文件
trigger:
- master
pool:
vmImage: 'windows-latest'
variables:
solution: '**/*.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
steps:
- task: NuGetToolInstaller@1
- task: NuGetCommand@2
inputs:
command: 'restore'
packagesToPush: ' $(Build.SourcesDirectory)/NuPackages/*.nupkg'
restoreSolution: '**/*.sln'
feedsToUse: 'select'
allowPackageConflicts: true
includeNuGetOrg: true
当我启动我的管道时,远程包已安装,但未安装本地包。
> Installed:
> 158 package(s) to D:\a\1\s\****.csproj
> 212 package(s) to D:\a\1\s\****.csproj
> 158 package(s) to D:\a\1\s\****.csproj
> ##[error]The nuget command failed with exit code(1) and error(NU1101: Unable to find package UnifiedAutomation.UaBase.BouncyCastle. No
> packages exist with this id in source(s): NuGetOrg NU1101:
我也尝试分两步执行此操作,但我遇到了同样的问题 如果有人有想法,那就太好了。
提前致谢
【问题讨论】:
标签: .net visual-studio .net-core azure-devops yaml