title: How do I update a single nuget package in a project from the command line?
body: <p>I am trying to update a single package in a csproj with multiple dependencies. That is, the packages.config file looks like this:</p>
  
  <pre><code>&lt;packages&gt;
    &lt;package id="PackageA" version="1.2.1" targetFramework="net40" /&gt;
    &lt;package id="PackageB" version="2.3.4" targetFramework="net40" /&gt;
    &lt;package id="PackageC" version="1.0.0" targetFramework="net40" /&gt;
  &lt;/packages&gt;
  </code></pre>
  
  <p>I'd like to update <strong>PackageA</strong> without updating the others. I see that <a href="http://blog.nuget.org/20121231/a-quick-tutorial-on-update-package-command.html" rel="noreferrer"><strong>Update-Package</strong> in the Visual Studio package manager has this capability</a>, but this needs to run on a TFS build machine.</p>
  
  <p>Is there a way to do this from the command line? The anticipated workflow is the build machine running</p>
  
  <ol>
  <li><strong>Nuget.exe restore</strong></li>
  <li><strong>Nuget.exe update</strong> (on each csproj file)</li>
  </ol>
  
  <p>But the <strong>update</strong> command does not allow us to specify which package to update on. I know there is an allowedVersions tag for the packages, but that is would require us to change the packages.config file when creating different branches that require different components to update or not, whereas a package-specific, csproj-specific command-line would allow us to associate the dependencies to update with each TFS branch via its build definitions.</p>