I have added a reference to an external of my project and solution .dll
file, I can see it under the References
node in the Solution Explorer window, but it can't find it when I try to use it in the statement using dllfilename
, so I basically can't use the library.
When I go to the Object Browser - I find the Namespace of the project and it's classes/methods but I can't see the referenced library or at least its namespace or whatever...
There is a bug in VS2010. The solution is easy: Project -> Properties -> Application tab -> change Target Framework to ".NET Framework 4" instead of the Client Profile that is selected by default.
You don't need to use using dllfilename
. The correct usage is using NamespaceThatIsAccessibleFromDll;
. Once you do that, you can use the public classes that appear in this namespace.
Try project, properties; in the application tab under target framework if you have .NET Framework 4 (Client Profile) (or 4.5 Client Profile) then change it to the appropriate version without the client profile. This has caught me out a few times - and I'm not alone -
Can't see namespace
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With