Third party class not loading in 'using'. Where are additional classes installed?
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?
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.
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
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.
精彩评论