How to install a NuGet package on the command line to a Visual Studio Project?

Topics: Ecosystem
Jul 18, 2013 at 8:24 PM
I downloaded nuget.exe and I have tried the install. I would like to target a visual studio project or solution on the command line outside of Visual Studio. It is simply downloading the package with a version number on the end. MyOutputDirectory is the output directory which has a Visual studio solution there.

nuget install nhibernate -o MyOutputDirectory

Jul 18, 2013 at 8:47 PM

---------- Forwarded message ----------
Jul 18, 2013 at 9:13 PM

I think the message was cut off.

Jul 18, 2013 at 9:22 PM
Okay let's try again :)

What you describe is not currently supported. This post describes why.

Jul 19, 2013 at 2:33 AM

Okay, no problem. I am building a code generator that will support NuGet. It looks like I will be doing all this logic myself after the nuget.exe downloads the files. Thanks for your help.