title: How to delete all packages before building?
body: <p>The problem I am trying to fix is this</p>
  <ul>
  <li>we work with more than one person on several projects</li>
  <li>when person 1 updates a nuget package from version 1 to 2, then he sometimes has to uninstall version 1 and delete version 1 manually from the packages folder, since version 2 installed next to version 1 in stead of updating</li>
  <li>when person 2 does an &quot;update&quot; from SVN than he receives a packages.config that instructs his VS to get package version 2, but the package version 1 remains on his computer</li>
  <li>because the old package is still there, sometimes VS complains about it, or pushes it out again when we publish</li>
  </ul>
  <p>So I thought I write a command line in the <code>pre build</code> events, to clear the packages directory, so VS only fetches the correct versions before building,<br />
  but, it seems that the <code>pre build</code> event does this AFTER Visual Studio fetches missing packages, which keeps the packages folder empty, and VS not building...</p>
  <p>Is there a pre-pre build event ? That fires before VS starts fetching missing packages ?
  Or is there a better way to fix this problem ?</p>
  <p><strong>EDIT</strong></p>
  <p>Or is there maybe a command to tell VS to fetch missing packages ?<br />
  Then I could still use the <code>pre-build</code> event, and just clear the packages folder and then tell VS to fetch its missing packages again.</p>