Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Problem to packaging

Posted on 2016-07-25
1
Medium Priority
?
190 Views
Last Modified: 2016-07-26
Hi,
How to correct
Error	2	The type or namespace name 'Packaging' does not exist in the namespace 'System.IO' (are you missing an assembly reference?)

Open in new window


due to this line?

using System.IO.Packaging;

Open in new window

0
Comment
Question by:HuaMinChen
1 Comment
 
LVL 21

Accepted Solution

by:
Tapan Pattanaik earned 1500 total points
ID: 41728878
Hi HuaMinChen,

1. In  Solution Explorer, right-click on References and select Add References from the context menu.

2. Select .NET Tab -->select WindowsBase.dll--> then Click on OK

Save the solution (especially if you're compiling from the command-line with MSBuild) and you should now be able to add the using System.IO.Packaging directive to the top of your .cs file without an error appearing.

Regards,
Tapan Pattanaik
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Hello there! As a developer I have modified and refactored the unit tests which was written by fellow developers in the past. On the course, I have gone through various misconceptions and technical challenges when it comes to implementation. I would…
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question