System.IO.Compression.ZipFile

EtaLasquera

Client
Регистрация
02.01.2017
Сообщения
524
Благодарностей
112
Баллы
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);
 

arhip1985

Client
Регистрация
31.10.2011
Сообщения
2 955
Благодарностей
781
Баллы
113
try so
Код:
string path = @"c:\unzip\";
string zip = @"c:\zip\zipfile.zip";
 

EtaLasquera

Client
Регистрация
02.01.2017
Сообщения
524
Благодарностей
112
Баллы
43

arhip1985

Client
Регистрация
31.10.2011
Сообщения
2 955
Благодарностей
781
Баллы
113

EtaLasquera

Client
Регистрация
02.01.2017
Сообщения
524
Благодарностей
112
Баллы
43
Still error, another error now.... expected "." row 0 column ...
 

Вложения

EtaLasquera

Client
Регистрация
02.01.2017
Сообщения
524
Благодарностей
112
Баллы
43
I think this is the classes who I can use with System.IO.Compression:
 

Вложения

arhip1985

Client
Регистрация
31.10.2011
Сообщения
2 955
Благодарностей
781
Баллы
113

Вложения

arhip1985

Client
Регистрация
31.10.2011
Сообщения
2 955
Благодарностей
781
Баллы
113
I have mistake, but I add refernce its work good
 

EtaLasquera

Client
Регистрация
02.01.2017
Сообщения
524
Благодарностей
112
Баллы
43
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.
 

Вложения

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

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