title: How to read the list of NuGet packages in packages.config programatically?
body: <p>What's the best way to read (ideally via C#) the packages listed in packages.config files?</p>
  
  <p>Within our source code repository I have a lot of solutions and projects and equally a lot of packages.config files. I'm trying to build a consolidated list of packages (and versions) in use across my source code repository.</p>
  
  <p>I can see there is a NuGet.Core package available - how could I use this to achieve my goal?</p>
  
  <p>Thanks</p>