NuGet 恢复失败的 JetBrains 包

NuGet restore failed JetBrains Package

当我在 Jenkins 中构建我的 .NET 解决方案并尝试在实际的 MSBuild 步骤之前恢复 NuGet 包时,我收到此错误:

C:\Program Files\dotnet\sdk.1.300\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(198,5): error : Package JetBrains.Annotations, version 11.1.0 was not found. It might have been deleted since NuGet restore. Otherwise, NuGet restore might have only partially completed, which might have been due to maximum path length restrictions. [PATHLENGHT = 86]

我正在使用 MSBuild 15 和 NuGet Windows x86 命令行 nuget.exe v4.7.0

有什么想法吗?

干杯

由于这是一个 .Net 标准项目,我需要添加此命令以使其成功构建:

/t:恢复