matthid / Paket.TeamBuildCredentials

VSTS build tasks to allow Paket to access VSTS internal NuGet feeds. Released as part of https://github.com/isaacabraham/vsts-fsharp
MIT License
4 stars 0 forks source link

Exception: missing dependencies manifest #2

Closed Kurren123 closed 6 years ago

Kurren123 commented 6 years ago

Hi

I am getting the following error when building in azure devops, after the credentials provider has been set up, when paket is restoring:

2018-09-20T14:26:36.1749612Z Source 'https://www.nuget.org/api/v2' exception: System.Exception: error ---> System.Exception: Could not retrieve data from 'https://www.nuget.org/api/v2/Packages?$filter=(tolower(Id) eq 'openriaservices.viewmodel') and (Version eq '4.3')' ---> Paket.CredentialProviderUnknownStatusException: Credential provider returned an invalid result (-2147450741): 
2018-09-20T14:26:36.1749612Z Standard Error: Error initializing the dependency resolver: A fatal error was encountered, missing dependencies manifest at: C:\VSTSBuilds\bin\Microsoft.NETCore.App.deps.json

I have installed the .net core runtime and .net core SDK v2.1.

Any advice would be much appreciated.

Thanks!

matthid commented 6 years ago

Can you try with https://github.com/isaacabraham/vsts-fsharp ie:

Either:

As this repository is not the latest version and doesn't include support for azure devops (works with vsts urls only).

Kurren123 commented 6 years ago

Hi @matthid thanks for your quick response. I am using the "F# Helpers for Azure DevOps" extension. The error happens in the "restore packages" step of this build (which simply runs the paket bootstrapper and then does paket restore):

image

matthid commented 6 years ago

I have installed the .net core runtime and .net core SDK v2.1.

can you try to use the .Net Core Tool Installer task? It looks like something is not correct with your installation.

image

Kurren123 commented 6 years ago

Hi @matthid, thanks for your reply. I decided to install a global credentials provider on the build agent and it all works now. Thanks again for your time.