Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
779 views
in Technique[技术] by (71.8m points)

msbuild - Unable to restore NuGet package with TFS 2015 Build Definition

I am getting the Unable to find version '4.2.20023.15120' of package 'ReadyRoll.MSBuild' error while restoring the NuGet package with CI build.

The NuGet for the solution gets restored successfully when tried manually with Visual Studio but doesn't get restored with CI build definition.

For CI build, we use service account and I have updated its NuGet.config file present at C:Users[User name]AppDataRoamingNuGetNuGet.config similar to the account i.e. my EId where if tried to restore it works fine.

I am triggering the build on the same server where it is restoring the NuGet if tried manually with VS. I tried referring different solutions suggested in similar queries but no success. Not sure where is the CI build trying to refer while restoring the NuGet.

enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

56.8k users

...