dotnet restore fails with Unable to load the service index error
dotnet build step is failing on dotnet restore. Error listed below:
I have verified that both dotnet restore and nuget restore work when run locally.
Having trouble finding any posts that mention a similar problem. Am I missing some configuration on teamcity? I'm kind of at a loss here.
Please sign in to leave a comment.
I also have this exact issue, did you ever discover how to fix it please ?
There are multiple possible causes for this. However, generally speaking, it's not a TeamCity-specific issue, but rather a connection problem (and there are multiple possible causes of why it may work from the console but fail from TeamCity depending on your configuration).
I would recommend reading through this thread (even if it's old, it would give you some ideas on what and how to check): https://github.com/JetBrains/teamcity-dotnet-plugin/issues/25.
Please let me know if any of the proposed there solutions worked in your case.
Best regards,
Anton