【发布时间】:2021-04-14 17:24:48
【问题描述】:
我们有一个 DevOps Server 2020 的本地实例。我有一个 dotnet 标准 2.0 库,我正在尝试将其推送到我们的内部 nuget 提要。
我收到错误 unable to get local issuer certificate。我按照这里的说明操作:Azure DevOps Server pipeline build fails when using self-signed SSL certificate with "unable to get local issuer certificate" during NuGet restore
但现在我收到错误(node:6056) Warning: Ignoring extra certs from C:\Certs\root.crt, load failed: error:02001003:system library:fopen:No such process
这是我设置根证书路径的 YAML:
variables:
solution: '**/*.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
NODE.EXTRA.CA.CERTS: 'C:\Certs\root.crt'
这是我打包和推送 Nuget 包的 YAML:
- task: DotNetCoreCLI@2
inputs:
command: 'pack'
packagesToPack: '**/*.csproj'
versioningScheme: 'off'
- task: DotNetCoreCLI@2
inputs:
command: 'push'
packagesToPush: '$(Build.ArtifactStagingDirectory)/*.nupkg'
nuGetFeedType: 'internal'
publishVstsFeed: 'b4b089f9-ff2f-4b74-9690-ec6082a4872b'
【问题讨论】:
-
这个问题有更新吗?如果答案能给你一些帮助,请随时告诉我。只是提醒this。
-
我确实通过使用 NuGetCommand@2 任务来完成这项工作。我承认我不知道为什么它适用于 DotNetCoreCLI@2 任务。我与它斗争了一整天,做了很多改变,我不知道哪一个有效。
标签: .net-core azure-devops nuget