How do I search by Creator with Get-Package?

Feb 27, 2012 at 1:11 PM

Hi,

I want to find all NuGet packages created by Microsoft.

If I use "Get-Package -Filter Microsoft -ListAvailable", that is not going to give me what I want.

How do I accomplish this?

 Thanks.

Feb 27, 2012 at 2:48 PM

You could do something like this:

Get-Package -ListAvailable | where { ($_.Authors -match 'microsoft') -or ($_.Owners -match 'microsoft') }

Note well, however, that just because a package includes 'Microsoft' in its authors or owners fields, doesn't mean it *actually* was made by Microsoft; package authors can put whatever they like into these fields. A better way to find all packages managed by Microsoft is to visit the NuGet Gallery: http://nuget.org/profiles/microsoft.

Note also that, unlike using the -filter param, piping to where is all done on the client, and so will take considerable longer.

Feb 27, 2012 at 5:48 PM

<mark as answer> :-)  Thanks!