Question: 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?

Answer: 
It is a [requested feature in codeplex](https://nuget.codeplex.com/workitem/2130). I'm working outside of Visual Studio, in PowerShell, and was able to work around using:

```
nuget list id:EntityFramework | ? { $_ -match "^EntityFramework\s+" }

```
Just install - **dotnet-search**

<https://www.nuget.org/packages/dotnet-search/>

Then run below command:

> 
> dotnet search 
> 
> 
> 

This helps for me..!