Cannot restore nuget packages in VSTS (packages could not be installed)

I am using Visual Studio Team Services to create a .NET solution. I have a Nuget Installer task to restore solution packages that is configured as follows:

enter image description here

Nuget.config file has 2 source packages - one is nuget.org (v2) and the other is a custom channel (Nuget Server v2.5.40416.9020). All packages from the nuget.org feed are restored, but there isn’t from the custom channel; for each package from the custom channel, an error message similar to the following appears:

Unable to find version of 'abc' package 'xyz'

Error:

[Error] Error: C: \ a_tasks \ NuGetInstaller_333b11bd-d341-40d9-AFCF-b32d5ce6f23b \ 0.2.22 \ node_modules \ NuGet-problem-common \ NuGet \ 3.3.0 \ NuGet.exe failed with return code: 1 [error ] Packages failed to install

This worked fine 1 or 2 days ago.

Locally, everything is working fine. Also, I tried with nuget version 3.5.0 and the custom version of nuget.exe without success.

Any suggestions?

+5
source share
1 answer

I had this mistake today. I fixed this error by looking at the changes in the solution file with our main code branch and found some old lines that should not have been there. I think they were the result of a poor merger and should have been removed during the resolution of the conflict.

To fix this problem, I simply deleted the old and all written links.

 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Services", "Services", "{EAECFF2D-7339-4180-8E1E-6DF9EC9EB131}" EndProject {3C14F190-6B6A-4913-9681-AFD9B62850FA} = {EAECFF2D-7339-4180-8E1E-6DF9EC9EB131} {687ECE00-A567-40F3-BFF9-C3B639328F27} = {EAECFF2D-7339-4180-8E1E-6DF9EC9EB131} 

Thanks FiSSH

0
source

Source: https://habr.com/ru/post/1258757/


All Articles