I' like to use the dll System.IO.Compression.FileSystem.dll in my project
the .net framework version is 4.5 and the os is 64. The problem is that the dll is not found. What is the solution?
I' like to use the dll System.IO.Compression.FileSystem.dll in my project
the .net framework version is 4.5 and the os is 64. The problem is that the dll is not found. What is the solution?
Adding reference to System.IO.Compression.dll solved this issue for me.
A new nuget package is coming out. Check this out :)
https://www.nuget.org/packages/System.IO.Compression.ZipFile
in the System.IO.Compression there's no such class as FileSystem check it out the link on the msdn
the classes available are:
if your goal is to use compression of file or stream use the GZipStream class.
However remove the FileSystem from the using statement:
Anyway as Joe Enos has pointed out classes from the Compression namespace have been taken out the Client Profile from the framework 4.5
Below the Version Information from the msdn about the GZipStream:
The namespace is not the same as the dll name (assembly name). from the MSDN page you linked
So the namespace you need to include is
System.IO.Compression
notSystem.IO.Compression.FileSystem
. Take off theFileSystem
part from yourusing
statement and it will solve your problem.If people are down-voting me because the OP said "The problem is that the dll is not found." I think the OP is not using the correct word choice, if the problem really was that the DLL could not be found there would be a exclamation point by the assembly name which the original screenshot does not have
See the original image below
(click for larger view)
Compare that to my screenshot I created that would show up if the DLL really was not found, note the exclamation point I have that the original screenshot does not.