简体   繁体   English

Jenkins 在看起来是 Nuget 的恢复步骤上构建失败

[英]Jenkins build failing on what looks to be the Nuget Restore step

I've downloaded and set up jenkins on my local machine to test it out.我已经在本地机器上下载并设置了 jenkins 来测试它。

I have a job created to run some basic unit tests for an automation framework.我创建了一个工作来为自动化框架运行一些基本的单元测试。 I'm stumped on this error I'm seeing.我对我看到的这个错误感到困惑。 If I'm reading this message correctly it's saying that it can't find the csproj file in the listed directory but when I navigate to it manually every file is indeed there.如果我正确阅读了此消息,则表示它在列出的目录中找不到 csproj 文件,但是当我手动导航到它时,每个文件确实都在那里。

Did I miss a step in the job build process?我错过了工作构建过程中的一个步骤吗?

MSBuild auto-detection: using msbuild version '16.7.0.37604' from 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\bin'.
C:\WINDOWS\TEMP\NuGetScratch\m224fx2s.f0i.nugetrestore.targets(285,5): error MSB3202: The project file "C:\Windows\System32\config\systemprofile\AppData\Local\Jenkins\.jenkins\workspace\CATS Framework Unit Tests\CATS.Framework\CATS.Framework\CATS.Framework.csproj" was not found. [C:\WINDOWS\TEMP\NuGetScratch\id0uys0i.dbk.nugetinputs.targets] 

Try running below command on two terminal windows, one with admin privilege and one without:尝试在两个终端 windows 上运行以下命令,一个具有管理员权限,一个没有:

cd "C:\Windows\System32\config\systemprofile\AppData\Local"

The one without admin privelege won't let you.没有管理员权限的人不会让你。 My best guess is that your process is not elevated.我最好的猜测是你的过程没有提升。 I would move the project to some other folder.我会将项目移动到其他文件夹。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM