I would like to obtain a list of contents in a ZIP file using the 'ZipArchive' class.
I am using an example from MSDN:
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.IO.Compression; using System.IO.Compression.dll; namespace Zip_Extractor { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { using (FileStream zipToOpen = new FileStream(@"c:\users\exampleuser\release.zip", FileMode.Open)) { using (ZipArchive archive = new ZipArchive(zipToOpen, ZipArchiveMode.Update)) { ZipArchiveEntry readmeEntry = archive.CreateEntry("Readme.txt"); using (StreamWriter writer = new StreamWriter(readmeEntry.Open())) { writer.WriteLine("Information about this package."); writer.WriteLine("========================"); } } } } } } However, I get the error
'Namespace for 'ZipArchive could not be found'.
I can confirm the 'Target framework' for the application is .NET Framework 4.5.
Can anyone point me in the right direction?

System.IO.Compression.dllas a reference?