“The type ‘System.IO.Packaging.Package’ is defined in an assembly that is not referenced.” Error

Today , when I was working with the Open Office XML 2.0 SDK and adding the reference to the DocumentFormat.OpenXML assembly file and tried to build the project , i got the below compiler error message.

“The type ‘System.IO.Packaging.Package’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘WindowsBase, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35’.”

The fix was really simple. Adding the Windows Base assembly to the project solved the problem.

If you are using, Visual Studio 2012, just search for the WindowsBase in the Assemblies -> Framework in the Add Reference Dialog.

If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.

One Response

  1. Ashwath Shetty February 9, 2016 Reply

Leave a Reply


Interesting BlogPosts to read

Office Online lets you chat with your co-editors in realtime
Microsoft had recently announced a feature that allows the co-editors to chat with each other direct...
Aspose.Pdf Cloud SDK for Perl - v1.0.0 Released
If you are a perl developer and looking for the Aspose.Pdf Cloud SDK for Perl , you will find this p...
Office 365 API Tools Summer Update Preview Released
Few days back , Microsoft had released a preview of its Office 365 API tools Summer Update .  Chakka...