2012-11-26 57 views
1

我使用java.util.zip在C#中的Visual Studio 2005項目解壓壓縮文件,java.util中沒有在Visual Studio 2010

工作,但是當我升級項目,Visual Studio 2010中不編譯再投擲以下錯誤

"The type or namespace name 'java' could not be found (are you missing a using directive or an assembly reference?)" 

java or java.util is missing in visual studio 2010?我應該怎麼做才能在我的項目中添加這個項目?

+2

Java.Util,在C#中?什麼? – Pluc

+0

@Pluc [yep](http://msdn.microsoft.com/zh-cn/magazine/cc164129.aspx)。 – CodeCaster

+0

您不能將Visual Studio用作Java的IDE。除非我錯過了一些東西。 – zeencat

回答

4

J#是discontinued in VS 2008。您需要安裝J#2.0可再發行組件包(從同一頁面鏈接),並在C#項目中添加適當的引用。可以使用SharpZipLib或其他第三方庫。

+0

感謝您的快速回復,我認爲使用SharpZibLib或DotnetZipLib(http://dotnetzip.codeplex.com/)會是更好的選擇。 –