Home Ask Login Register

Developers Planet

Your answer is one click away!

James Ko February 2016

How to use a NuGet package within a PowerShell script?

I'm writing a PowerShell script that makes use of the Mono.Cecil library. How would I install the package so I can use it from within the script? Thanks!

(For the record, I did try Googling before asking this, but all that came up was results about PMC and Visual Studio, which aren't relevant to this question.)


James Ko February 2016

Never mind, I ended up just downloading and unzipping the package manually via the NuGet API. For those who are interested/others who have this problem, here is the code I used.

Post Status

Asked in February 2016
Viewed 2,237 times
Voted 8
Answered 1 times


Leave an answer

Quote of the day: live life