Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12111

dotnet restore fails in docker

$
0
0

I have created an ASP.NET Core Web API project, later I added docker support from Visual Studio. When I start the project with the container launch settings profile, it is working fine, but using the CMD docker build ., I get this error:

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

In the step of dotnet restore; I have tried multiple solutions posted on similar questions but nothing works for me.

I am using global protect VPN but I turned it off and still nothing changed


Viewing all articles
Browse latest Browse all 12111

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>