- Home /
The type or namespace name `ICSharpCode' could not be found.
When trying to compile and run my project through MonoDevelop, I get this error:
The type or namespace name
ICSharpCode' could not be found. Are you missing a using directive or an assembly reference? But, when trying to run directly on Unity (4.2.0) there is no such issue. Any clues? Here's my whole
JS` file, taken out of vuforia:
import System.IO.File;
import System.IO.Stream;
import ICSharpCode.SharpZipLib.Core;
import ICSharpCode.SharpZipLib.Zip;
// this script unzips a container at a given path and returns a input stream to a given file in this container
public static function Unzip(path : String, fileName : String)
{
var fileStream = OpenRead(path);
var zipFile = new ZipFile(fileStream);
for (var zipEntry : ZipEntry in zipFile)
{
if (zipEntry.Name == fileName)
{
return zipFile.GetInputStream(zipEntry);
}
}
return;
}
P.S.: I'm just feeding answers here, because I already found a solution for this on the forums! ;-)
Answer by cregox · Aug 19, 2013 at 11:03 PM
As mentioned, the work around for this problem is copying the DLL inside Plugins
folder. In this case, grab it from:
C:\Program Files (x86)\Unity\Editor\Data\MonoBleedingEdge\lib\mono\2.0\ICSharpCode.SharpZipLib.dll
And put it into:
<project folder>/Assets/Plugins
Worked for me! :-)
No idea why this happens, tho. :-(
Answer by hebaothman92 · Mar 15, 2014 at 05:31 PM
the same problem i try this answer but it doesn't work T_T
Your answer
![](https://koobas.hobune.stream/wayback/20220613112543im_/https://answers.unity.com/themes/thub/images/avi.jpg)