Solution:

The solution is manual one, unless you find any automated solution.

It would stuck and display like below:

[command]D:\DevOpsAgent\_work\_tool\NuGet\4.9.4\x64\nuget.exe restore D:\DevOpsAgent\_work\2\s\AbC.sln -Verbosity Detailed -NonInteractive -ConfigFile D:\DevOpsAgent\_work\2\Nuget\tempNuGet_247.config

So All you need to do is to go to your agent server and go to the directory

D:\DevOpsAgent\_work\_tool\NuGet\4.9.4\x64

and execute below command

restore D:\DevOpsAgent\_work\2\s\AbC.sln -Verbosity Detailed -NonInteractive -ConfigFile D:\DevOpsAgent\_work\2\Nuget\tempNuGet_247.config

It will restore the packages at once and you need to cancel the build and initiate again. Next time whole process will work like a charm. Please also make sure you have access to internet or source of the nuget packages.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: