0

I'm new to Visual Studio and Windows, trying to figure out how to include a 3rd party lib into my vb.net project. I'm using VS2010 "free edition", i've added the required DLL file: Ionic.Zlib.dll and can see it under the references recent tab. The type "ZipFile" is still not resolving but should be according to the readme. Is there something else I need to do to make VS aware of the DLL?

RandomUser
  • 4,140
  • 17
  • 58
  • 94

2 Answers2

2

You also need to add a Imports statement at the top of the source file in order to be able to use a type without declaring the fully qualified name.

Oded
  • 489,969
  • 99
  • 883
  • 1,009
2

you need to write on the top of the file

in c#:

using Your_namespace;

in vb:

imports Your_namespace

Daniel Ezra
  • 1,424
  • 3
  • 14
  • 21
  • 2
    From the question: "i've added the required DLL file: Ionic.Zlib.dll and can see it under the references recent tab" – Oded Nov 10 '12 at 17:01
  • At least get the VB.NET syntax right. It is `Imports` and not `Import` and there is no `;` at the end of statements. – Oded Nov 10 '12 at 17:56