When performing a dotnet tool install
or similar command, you get an error like this one:
Unable to load the service index for source https://api.nuget.org/v3/index.json.
The SSL connection could not be established, see inner exception.
Received an unexpected EOF or 0 bytes from the transport stream.
You might then need to set proxy for Nuget.
Open Nuget.config
in C:\users\YOUR_USER\AppData\Roaming\Nuget\Nuget.config
Add this config
section to the configuration
element:
<config>
<add key="http_proxy" value="http://your-proxy-url:8080" />
<add key="https_proxy" value="https://your-proxy-url:8080" />
</config>
Your Nuget.config might then look like this:
<configuration>
<packageSources>
...
</packageSources>
<config>
<add key="http_proxy" value="http://your-proxy-url:8080" />
<add key="https_proxy" value="https://your-proxy-url:8080" />
</config>
</configuration>
Top comments (1)
Good information!! Photo vashikaran mantra