views:

42

answers:

3

I have a third party library installed, but the accompanying namespace isn't found.

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

Fair enough, VS 2010 can't find it. But where does my system look for third party libraries? Can I modify the list of locations?

+2  A: 

The framework looks for Libraries in GAC and The bin folder. Either way you need to add a reference to the library in your project

Midhat
+1  A: 

Have you added a reference to the assembly in your visual studio project? I haven't used VS 2010, in 2008/5 you go to the references section of your project in solution explorer and right click and select add reference. You can then chose the location of the assembly.

Ben Robinson
+5  A: 

using does not cause a library to be loaded or referenced. It only makes the classes in that namespace available for use without their namespace prefix.

Before you can use a library, you need to reference it in your project. Go to the Project menu and choose Add Reference... From that dialog box you can choose libraries that have been installed in the GAC, you can browse to an explicit DLL, or you can reference another project in your solution.

Erv Walter
Thanks. For my own reference: http://msdn.microsoft.com/en-us/library/wkze6zky(VS.100).aspx
nailer