NuGet: test if a package is installed

With Get-Package you can get the list of currently installed packages. How can you test if a package is installed?

Get-Package returns list of packages as follows:

Id                             Version              Description                                                                                                        --                             -------              -----------                                                                                                        EntityFramework                4.1.10331.0          DbContext API and Code First workflow for ADO.NET Entity Framework.                                                MacawSolutionsFactory-Core     1.0.0                Macaw Solutions Factory Base package                                                                               MacawSolutionsFactory-Spf2010  1.0.0                Macaw Solutions Factory core package for Spf2010                                                                   T4Scaffolding                  1.0.0                A fast and customizable way to build parts of your .NET application via templates                                  
To test if a package is installed do the following:
(get-package | Select-Object -ExpandProperty ID) -contains 'EntityFramework'
This will return $true or $false.


  • But wanna input on few general things, The website design and style is perfect, the content material is really good : D.

  • xhqgh jacoby ford jersey
    pgyni peyton manning jersey
    izuxs chris johnson jersey
    tghdj chris johnson jersey
    yrkbd peyton manning jersey

  • Good day! Would you mind if I share your blog with my
    facebook group? There's a lot of people that I think would really enjoy your content. Please let me know. Thank you

  • Hi there to every body, it's my first pay a quick visit of this weblog; this webpage includes remarkable and in fact fine information in favor of visitors.

  • At this time it seems like Wordpress is the best blogging platform available right now.
    (from what I've read) Is that what you're using on your blog?

  • Normally I don't read post on blogs, but I would like to say that this write-up very pressured me to try and do so! Your writing taste has been surprised me. Thanks, very great article.

  • Post writing is also a excitement, if you
    be acquainted with after that you can write
    otherwise it is complicated to write.

  • Superb, what a blog it is! This website provides valuable data to us,
    keep it up.

  • You actually make it seem so easy with your presentation but I find
    this matter to be really something which I think I would never understand.
    It seems too complex and very broad for me.
    I'm looking forward for your next post, I will try to get the hang of it!

  • It's very effortless to find out any matter on net as compared to books, as I found this piece of writing at this web page.

  • I go to see every day some sites and information sites to read articles, but this
    weblog offers quality based articles.

  • Superb site you have here but I was wanting to know if you knew
    of any discussion boards that cover the same topics talked
    about in this article? I'd really love to be a part of group where I can get comments from other experienced individuals that share the same interest. If you have any recommendations, please let me know. Bless you!

  • It's a pity you don't have a donate button! I'd definitely donate to this superb blog! I suppose for now i'll settle for
    book-marking and adding your RSS feed to my Google account.

    I look forward to fresh updates and will share this website with my Facebook group.

    Chat soon!

  • Aw, this was a very good post. Taking the time and actual effort to produce a superb article… but what can I say… I hesitate a lot and don't manage to get anything done.

  • Greetings from Idaho! I'm bored to death at work so I decided to check out your website on my iphone during lunch break. I love the knowledge you provide here and can't wait to take a look
    when I get home. I'm amazed at how fast your blog loaded on my mobile .. I'm not even using WIFI,
    just 3G .. Anyways, amazing site!

Comments have been disabled for this content.