Using nuget from StudioShell

Jan 3, 2012 at 2:08 PM

Is it possible to use nuget functionality from StudioShell? The reason is simple: we have a lot of solutions that use the same packages. What I would like - use v 1.2 StudioShell from PowerShell (via ipmo), open all the solutions one by one and update packages in the solutions.

Since there are many solutions, it is not possible to open the solutions manually and update it either via GUI or Nuget console. Instead I simple run PowerShell script that changes the *.csproj files. 

Jan 6, 2012 at 8:36 PM

It's obviously possible to run nuget.exe from powershell; however, I don't believe the Visual Studio package installation cmdlets are available from the console. NuGet doesn't use the VS command infrastructure to install packages; that's managed entirely from their powershell cmdlets.  You'd have to import the NuGet module inside of the powershell session along with StudioShell, and I'm not sure that's possible.

You'd have to ask the NuGet team, to be honest.  Sorry.