RandomUser
RandomUser

Reputation: 4220

Visual Studio, added DLL reference but type not found

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?

Upvotes: 0

Views: 752

Answers (2)

Daniel Ezra
Daniel Ezra

Reputation: 1444

you need to write on the top of the file

in c#:

using Your_namespace;

in vb:

imports Your_namespace

Upvotes: 2

Oded
Oded

Reputation: 499002

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.

Upvotes: 2

Related Questions