• Sign In
 
  • MSDN Blogs
  • Microsoft Blog Images
  • More ...
Search
  • Advanced search options...
Tags
  • .NET
  • Altova
  • blogging
  • code samples
  • Codeplex
  • Custom XML
  • DII
  • DIS29500
  • ECMA-376
  • IBM
  • Java
  • Monarch
  • ODF
  • Office 2007
  • OpenXMLDeveloper.org
  • PHP
  • Redmond
  • SharePoint
  • System.IO.Packaging
  • TechEd
  • UOF
  • VSTO
  • Windows
  • WordprocessingML
  • workshops
Archives
Archives
  • January 2012 (1)
  • October 2011 (1)
  • July 2011 (2)
  • April 2011 (1)
  • March 2011 (3)
  • December 2010 (1)
  • August 2010 (1)
  • June 2010 (1)
  • May 2010 (1)
  • April 2010 (3)
  • March 2010 (1)
  • November 2009 (4)
  • October 2009 (1)
  • September 2009 (2)
  • July 2009 (2)
  • June 2009 (4)
  • May 2009 (5)
  • April 2009 (4)
  • March 2009 (4)
  • February 2009 (2)
  • January 2009 (4)
  • December 2008 (4)
  • November 2008 (3)
  • October 2008 (4)
  • September 2008 (3)
  • August 2008 (2)
  • July 2008 (5)
  • June 2008 (7)
  • May 2008 (5)
  • April 2008 (8)
  • March 2008 (14)
  • February 2008 (15)
  • January 2008 (13)
  • December 2007 (12)
  • November 2007 (5)
  • October 2007 (9)
  • September 2007 (6)
  • August 2007 (10)
  • July 2007 (9)
  • June 2007 (8)
  • May 2007 (12)
  • April 2007 (14)
  • March 2007 (12)
  • February 2007 (10)
  • January 2007 (17)
  • December 2006 (14)
  • November 2006 (10)
  • October 2006 (11)
  • September 2006 (12)
  • August 2006 (12)
  • July 2006 (12)
  • June 2006 (23)
  • May 2006 (14)
Common Tasks
  • Blog Home
  • Email Blog Author
  • About
  • RSS for comments
  • RSS for posts

Finding WindowsBase.dll

Doug Mahugh - Office Interoperability
MSDN Blogs > Doug Mahugh > Finding WindowsBase.dll

Finding WindowsBase.dll

Doug Mahugh
15 Dec 2006 1:31 AM
  • Comments 10

OK, what's the deal with WindowsBase.dll? It's the dll where the System.IO.Packaging API lives, and you have to add a reference to it in your project before you can use the packaging API. And it's never there at the end of the .NET tab on my "Add Reference" dialog. For example, here's my list, which ends with VsWebSite.Interop. So I have to manually browse to the dll, as shown to the right.

Is it me? I did some searching on-line, and I don't think it is.

Hai has the same problem, Dave has to find in manually, Howard can't seem to find it at all, and even the folks at MSDN seem to have problems finding WindowsBase.dll. And that's just a representative sample -- search for WindowsBase.dll and you'll find a bunch more people talking about where to manually locate it.

But some people don't have any problem, apparently. They have WindowsBase.dll right there on the .NET tab, ready to click on it, no searching required. Ted Pattison, for instance, has it under his .NET tab, and even has a screen shot in his recent MSDN article to prove it. (Showoff! Great article, though.) And Mauricio seems to find it his .NET tab, too.

What do the rest of us have to do to get WindowsBase on that .NET tab? I used to think this was something I had screwed up myself, but this week I formatted my C: drive, installed Vista, installed Visual Studio, and ... WindowsBase.dll was not on the .NET tab, and I had to manually browse to it.

If you're one of us WindowsBase-challenged types, here's what you need to know:

c:\Program Files\Reference Assemblies\Microsoft\Framework\v3.0\WindowsBase.dll

  • 10 Comments
.NET, System.IO.Packaging
Comments
  • Wouter van Vugt
    15 Dec 2006 1:57 AM

    I was one of those challenged types as well:

    http://blogs.infosupport.com/wouterv/archive/2006/05/15/Finding-the-packaging-dll.aspx

    But I have become un-challenged in the mean time. I think it has something to do with installing the runtime VS the SDK, but I am unsure.

  • Doug Mahugh
    16 Dec 2006 4:30 PM

    I thought you were on to something there, Wouter.  But I just finished installing the SDK, and I still have no WindowsBase.dll in the listbox on the .NET tab.  Hmm ... what else could it be?

    This makes it sort of hard to write about working with the packaging API, if you always have to start out with "Add a reference to WindowsBase.dll, either by clicking on it from the .NET tab (for the lucky few) or browsing to c:\Windows bla bla bla (the the unlucky others)."

    Or you can just say to browse for it, then have somebody tell you that you're doing it the hard way.  I've been through that a few times now.  :-)

  • Jean
    18 Dec 2006 4:13 AM

    I don't have it either. But my guess is that it is part of the patch for Visual Studio & WCF / WPF. Did you install it?

    Jean

  • Doug Mahugh
    18 Dec 2006 8:17 PM

    I'm not sure I know what you mean, Jean -- SP1?  Or are you talking about the "Visual Studio extensions"?  I installed an image off corpnet that I believe had SP1 already included.  (Not at my computer right now so I can't check.)

  • Jean
    19 Dec 2006 5:19 AM

    Yes, I meant the extensions for VS 2005. But once again I did not give them a try, so it's just a suggestion (I worked recently with a customer who had installed everything, and he could see the WindowsBase.dll).

    Jean

  • Doug Mahugh
    19 Dec 2006 1:10 PM

    Jean, that's it!  I installed the "Visual Studio 2005 extensions for .NET Framework 3.0 (Windows Workflow Foundation)" and now I have WindowsBase.dll right there on the .NET tab.  Wouter, I'd be curious whether you installed those extensions, just to confirm whether there's more than one way to get it there.

    And for anyone else who wants to install the extensions, here's the URL for the download:

    http://www.microsoft.com/downloads/details.aspx?familyid=5D61409E-1FA3-48CF-8023-E8F38E709BA6&displaylang=en

  • Wouter
    27 Dec 2006 9:29 AM

    Yep, extensions installed!

  • Jack Biddison
    28 Dec 2006 3:55 PM

    Lookingf for a DOUG MAHUGH, who moved west from Midwest near Chicago.  He was a real wihz bang on software.  He had SECOND CITY SOFTWARE in Arlington Heights, Illinois.  

  • Doug Mahugh
    28 Dec 2006 4:35 PM

    Jack Biddison!  Merry Christmas!

    Nearly 20 years ago, Jack and I were selling PC hardware and software together in the Chicago area.  Jack, I'm going to email you separately -- thanks for tracking me down.

  • Jon Galloway
    25 Oct 2007 4:08 AM

    Overview SharpZipLib provides best free .NET compression library, but what if you can't use it due to

Page 1 of 1 (10 items)
  • © 2012 Microsoft Corporation.
  • Terms of Use
  • Trademarks
  • Privacy Statement
  • Report Abuse
  • 5.6.131.143