title: nuget restore: Exception has been thrown by the target of an invocation
body: <p>When I run <code>nuget restore</code> from the command line, I get</p>
  
  <blockquote>
    <p>Error parsing solution file at MyProject.sln: Exception has been thrown by the target of an invocation.</p>
  </blockquote>
  
  <p>but restoring nuget packages from Visual Studio runs without errors. Any workarounds?</p>