there is no class like FileSystem in System.IO.Compression, check the link to msdn
available classes:
- DeflateStream Provides methods and properties for compressing and decompressing streams using the Deflate algorithm.
- GZipStream Provides methods and properties used to compress and decompress streams.
- ZipArchive Represents a package of compressed files in a zip archive format.
- ZipArchiveEntry Represents a compressed file in a zip archive.
- ZipFile Provides static methods for creating, extracting, and opening zip archives.
- ZipFileExtensions
if your goal is to use file or stream compression, use the GZipStream class.
However, remove the FileSystem from the using statement:
using System.IO.Compression;
In any case, since Joe Enos specified classes from the compression namespace, the client profile was deduced from the 4.5 framework
Below is the version information from msdn about GZipStream:
.NET Framework Supported in versions: 4,5, 4, 3,5, 3,0, 2,0
.NET Framework Client Profile Supported in: 4, 3.5 SP1
source share