System.IO.Packaging Namespace not found

While moving a part of code from a console application to a SSIS package we started getting compile time error System.IO.Packaging namespace not found.

This seemed like a very basic thing as System.IO namespace is found in System.dll but having System.dll as a part of solution increased the confusion.

A quick Bing returned that its a part of WindowsBase.dll, referring WindowsBase.dll solved the issue.

This a a good example of “Out of Sight, Out of Mind” as not requiring to refer WindowsBase.dll frequently made me forget that it even exists.

Leave a Reply

Your email address will not be published. Required fields are marked *