in a powershell script, i want to be able to know the version of a package on which i depend. can i get nuget.exe to tell me this information?
i've tried to do something like:
nuget list nunit.runners
this works fine for some packages, but for some (like the nunit.runners in the example), it returns a whole list of packages instead of just the one i want.
it would suffice if someone could point out a way to make nuget list return only a single item on an exact match on the search condition.
my question is really, though, what is the most straightforward way to ask a nuget feed for the version number of the latest version of a specific package?
It is a requested feature in codeplex. I'm working outside of Visual Studio, in PowerShell, and was able to work around using:
nuget list id:EntityFramework | ? { $_ -match "^EntityFramework\s+" }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With