title: Cake.build error : "The underlying connection was closed: An unexpected error occurred on a send"
body: <p>I am facing an issue when trying to run build cake file in powershell.</p>
  <p><a href="https://i.stack.imgur.com/tRIyB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tRIyB.png" alt="enter image description here" /></a></p>
  <ul>
  <li>The first line of build.cake file is: <code>#addin &quot;nuget:?package=Cake.SemVer&amp;version=1.0.14&quot;</code></li>
  <li>The version in /tools/packages.config is <code>&lt;package id=&quot;Cake&quot; version=&quot;0.21.1&quot; /&gt;</code></li>
  </ul>
  <p>Here is the link with the  <a href="https://github.com/cziemba1/cake" rel="nofollow noreferrer">full script</a></p>
  <p>This is the same for Jenkins and as localhost.</p>
  <p>In the response I see those lines too:
  Downloading and installing Roslyn...
  Installing packages (using <a href="https://packages.nuget.org/api/v2" rel="nofollow noreferrer">https://packages.nuget.org/api/v2</a>)...</p>
  <p>I am not sure if Roslyn requires this dowload, or the step that informs Downloading and installing Roslyn... it is already over and Installing packages is the next step.</p>
  <p>I tried updating the cake and semver version. And it runs ok:</p>
  <pre><code>build.cake
  #addin &quot;nuget:?package=Cake.SemVer&amp;version=4.0.0&quot;
  #addin &quot;nuget:?package=semver&amp;version=2.0.6&quot;
  
  packages.config
  &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;packages&gt;
      &lt;package id=&quot;Cake&quot; version=&quot;0.38.4&quot; /&gt;
  &lt;/packages&gt;
  </code></pre>
  <p>But in the result of build, I do not see, for example, &quot;Downloading and installing Roslyn...&quot;, so I am not sure if it worked properly:
  <a href="https://i.stack.imgur.com/uoIC6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uoIC6.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/mSek8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mSek8.png" alt="enter image description here" /></a></p>
  <p>Thank you for your help</p>