title: How to achieve full NuGet reinstall for dozens of solutions?
body: <p>We have dozens of solutions in a repository and we're retargeting every project to <code>net472</code> from <code>net462</code>. Currently our best bet is to open each and every solution in Visual Studio and execute the following command in the Package Manager Console.</p>
  <pre><code>Update-Package -Reinstall -IgnoreDependencies
  </code></pre>
  <p>As far as I'm aware, the PM console cannot be used outside Visual Studio, so this method of course is not very efficient, so what I was thinking about is using the <code>nuget.exe</code> tool for this. However at first glance I could not find any equivalent operation or argument set.</p>
  <p>The <a href="https://docs.microsoft.com/en-us/nuget/consume-packages/reinstalling-and-updating-packages" rel="nofollow noreferrer">documentation</a> at this moment says the following</p>
  <blockquote>
  <p>For all packages, delete the package folder, then run nuget install.
  For a single package, delete the package folder and use nuget install
   to reinstall the same one.</p>
  </blockquote>
  <p>So based on this I tried to delete the <code>packages</code> folder and run <code>nuget install</code> for a project, so I expected it to do a re-install. However, while it installed the package indeed (to <code>packages</code>), it does not touch the <code>packages.config</code> (for retargeting).</p>
  <p>Is anyone aware of any kind of possible way to automate this process?</p>