Jenkins MSBuild 失败,错误 NETSDK1064:找不到软件包 Microsoft.CodeAnalysis.Analyzers,版本 2.9.3

sta*_*_el 7 msbuild jenkins asp.net-core visual-studio-2019

我正在尝试部署示例 aspnet core 项目,但 Jenkins 构建失败。

C:\Program Files\dotnet\sdk\3.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.PackageDependencyResolution.targets(234,
5): error NETSDK1064: Package Microsoft.CodeAnalysis.Analyzers, version 2.9.3 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. [C:\Program Files 
(x86)\Jenkins\workspace\test\ProductCoreApi\ProductCoreApi.csproj]
Run Code Online (Sandbox Code Playgroud)

我用的是VS2019。我删除并重新安装了该软件包,并尝试了所有可能的措施。仍然无法了解出了什么问题。该项目位于github。知道出了什么问题吗?

Ovi*_*Ovi 0

好吧,对我来说,结果是我在系统帐户而不是管理员帐户下运行的詹金斯奴隶。