title: Input string was not in a correct format exception in NuGet
body: <p>I'm trying to install Ninject in one of my projects with exact version and project name given. I'm using locally hosted package repository. I'm facing following issue during package installation:</p>
  
  <pre><code>PM&gt; Install-Package Ninject -version 3.2.2.0 -project My.Project.Name
  Installing 'Ninject 3.2.2.0'.
  You are downloading Ninject from Ninject Project Contributors, the license agreement to which is available at https://github.com/ninject/ninject/raw/master/LICENSE.txt. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device.
  Successfully installed 'Ninject 3.2.2.0'.
  Adding 'Ninject 3.2.2.0' to My.Project.Name.
  Install failed. Rolling back...
  Install-Package : Input string was not in a correct format.
  At line:1 char:16
  + Install-Package &lt;&lt;&lt;&lt;  Ninject -version 3.2.2.0 -project My.Project.Name
      + CategoryInfo          : NotSpecified: (:) [Install-Package], FormatException
      + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand
  
  PM&gt; $error[0].Exception.StackTrace
     at System.Text.StringBuilder.AppendFormat(IFormatProvider provider, String format, Object[] args)
     at System.String.Format(IFormatProvider provider, String format, Object[] args)
     at NuGet.PowerShell.Commands.NuGetBaseCommand.Log(MessageLevel level, String message, Object[] args)
     at NuGet.VisualStudio.VsProjectSystem.RemoveReference(String name)
     at NuGet.ProjectManager.RemovePackageReferenceFromProject(IPackage package)
     at NuGet.ProjectManager.Execute(PackageOperation operation)
     at NuGet.ProjectManager.Execute(IPackage package, IPackageOperationResolver resolver)
     at NuGet.ProjectManager.RemovePackageReference(IPackage package, Boolean forceRemove, Boolean removeDependencies)
     at NuGet.VisualStudio.VsPackageManager.RollbackProjectActions(IProjectManager projectManager, IEnumerable`1 packagesAdded, IEnumerable`1 packagesRemoved)
     at NuGet.VisualStudio.VsPackageManager.RunProjectAction(IProjectManager projectManager, Action action)
     at NuGet.VisualStudio.VsPackageManager.AddPackageReference(IProjectManager projectManager, IPackage package, Boolean ignoreDependencies, Boolean allowPrereleaseVersio
  ns)
     at NuGet.VisualStudio.VsPackageManager.&lt;&gt;c__DisplayClass8.&lt;InstallPackage&gt;b__4()
     at NuGet.VisualStudio.VsPackageManager.RunSolutionAction(Action action)
     at NuGet.VisualStudio.VsPackageManager.InstallPackage(IProjectManager projectManager, String packageId, SemanticVersion version, Boolean ignoreDependencies, Boolean a
  llowPrereleaseVersions, Boolean skipAssemblyReferences, ILogger logger)
     at NuGet.VisualStudio.VsPackageManager.InstallPackage(IProjectManager projectManager, String packageId, SemanticVersion version, Boolean ignoreDependencies, Boolean a
  llowPrereleaseVersions, ILogger logger)
     at NuGet.PowerShell.Commands.InstallPackageCommand.InstallPackage(IVsPackageManager packageManager)
     at NuGet.PowerShell.Commands.InstallPackageCommand.ProcessRecordCore()
     at NuGet.PowerShell.Commands.NuGetBaseCommand.ProcessRecord()
  PM&gt; 
  </code></pre>
  
  <p>After that:</p>
  
  <ul>
  <li>the record is added to packages.config in the project directory</li>
  <li>the packaged is added to packages directory in the solution directory</li>
  <li>library is not referenced </li>
  <li>depending libraries are not processed.</li>
  </ul>
  
  <p>How can I mend it? What can cause this problem?</p>