dotnet restore
might throw the following error when building in Release configuration:
Unable to load the service index for source https://api.nuget.org/v3/index.json.
An error occurred while sending the request.
Couldn't resolve host name
This error is caused by the Docker VM (specifically the networking), which prevents the VM from resolving the api.nuget.org
-URL.
Restart the Docker for Windows
-VM.