System.IO.Compression.ZipFile

  • Автор темы Автор темы EtaLasquera
  • Дата начала Дата начала

EtaLasquera

Client
Регистрация
02.01.2017
Сообщения
527
Реакции
113
Баллы
43
I'm trying to unzip files in class System.IO.Compression Zenno returns an error "zipfile namespace does not exist", there is a way to register class in Zenno?

code:
string path = "c:\unzip\";
string zip = "c:\zip\zipfile.zip";
System.IO.Compression.ZipFile.ExtractToDirectory(zip,path);
 
try so
Код:
Развернуть Свернуть Копировать
string path = @"c:\unzip\";
string zip = @"c:\zip\zipfile.zip";
 
Still error, another error now.... expected "." row 0 column ...
 

Вложения

  • notitle.png
    notitle.png
    62,3 KB · Просмотры: 731
I think this is the classes who I can use with System.IO.Compression:
 

Вложения

  • notitle2.png
    notitle2.png
    11,1 KB · Просмотры: 466

Вложения

lol, extreme thanks arhip1985
If I run c# code in my current project (it is a big project) I receive my related error.
If I run the same code passing variables to another project "clean" the code run fine.

Solution: create a new project with C# code to unzip :S
Strange but works

And more one time, thanks for you help!

If you try use namespace in my current project no one will work.
 

Вложения

Последнее редактирование:

Кто просматривает тему: (Всего: 0, Пользователи: 0, Гости: 0)