c# - Adding System.IO.Compression Assembly Reference to Mono CentOS -


i trying make use of system.io.compression dll in c# application running on centos 7 mono 5.2.0.215.

i able add assembly reference in visual studio, when try compile .cs, it's throwing error:

program.cs(48,21): error cs0103: name `zipfile' not exist in current context compilation failed: 1 error(s), 0 warnings

zipfile being class of assembly reference.

any idea how make work?

foreach(var file in piesziplist)         {             try             {                 string extractionpath = file.substring(0, file.lastindexof('.') - 1);                 zipfile.extracttodirectory(file, extractionpath);                 piesunzippedlist.add(extractionpath);             }             catch(exception e)             {                 console.writeline(e.tostring());             }         } 


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -