title: How to solve OutOfMemoryException errors when adding a new NuGet package?
body: <p>Similar to <a href="https://stackoverflow.com/q/13719641/107625">this question</a>, I'm getting an exception in the Package Manager Output window while adding a new NuGet package (<a href="https://www.nuget.org/packages/System.Collections.Immutable" rel="nofollow noreferrer">System.Collections.Immutable</a>):</p>
  
  <blockquote>
    <p>Failed to update binding redirects for MyProject.csproj : Exception of type 'System.OutOfMemoryException' was thrown.</p>
  </blockquote>
  
  <p>While I find many results for <a href="https://msdn.microsoft.com/en-us/library/system.nullreferenceexception" rel="nofollow noreferrer"><code>NullReferenceException</code></a> errors, I found none for my <a href="https://msdn.microsoft.com/en-us/library/system.outofmemoryexception" rel="nofollow noreferrer"><code>OutOfMemoryException</code></a>.</p>
  
  <p><strong>My question:</strong></p>
  
  <p>How to solve <code>OutOfMemoryException</code> errors when adding a new NuGet package to a project?</p>