dr0n3
dr0n3

Reputation: 267

C# Usage of ZipArchive crashes the programm

I'm trying to unzip files without providing an extra *.dll. For that reason, i'm using the ZipArchive class from System.IO.Compression.

I added System.IO.Compression & System.IO.Compression.FileSystem as a reference and on my own computer, everything works fine. However, friends can't use it, because it crashes on the line

ZipArchive archive = ZipFile.Open(local, ZipArchiveMode.Read);

Do I need to provide an extra *.dll for it to work? Whats the problem?

Upvotes: 0

Views: 327

Answers (1)

Jeppe Stig Nielsen
Jeppe Stig Nielsen

Reputation: 61912

The ZipArchive class you use is new in .NET version 4.5. From your comment to the question it seems that your friends do not have .NET 4.5.

The DLL in which this class resides, is System.IO.Compression.dll as can be seen in the documentation I linked, but you will not have to care about that if your friends install .NET 4.5 on their machines.

Upvotes: 1

Related Questions