0

I am getting error :

Unable to load the service index for source https://api.nuget.org/v3/index.json

with dotnet publish

I am trying to deploy docker base asp.net core solution from visual studio 2017 with Amazon Tool Kit to AWS ECS.

I found several links but those do not work for me.

I tried by restarting docker service and Visual Studio also.

Parth Trivedi
  • 3,802
  • 1
  • 20
  • 40

3 Answers3

3

For me issue is with the corporate firewall.

After spending hours on the issue it gets resolved.

Before trying all other ways please try this first. This will save your time.

Parth Trivedi
  • 3,802
  • 1
  • 20
  • 40
0

I got the same issue with multiple Net Core 2.1 SDKs. I bypassed the issue with using a different runtime parameter, specifically win-x64 vs win10-x64. I'm not sure why this worked though

Luke
  • 776
  • 9
  • 24
0

Solution which worked for me is,I have changed Target framework from .net core 3.1 to 2.1 and then again added dockerfile to the project. [*I'm using Vs-2019]

Project prop-> Target Framwork

Updated Docker file

bakshay
  • 43
  • 5