Unable to use DLL link in C #

I added a link to the external file of my project and solution .dll, I see it under the Referencesnode in the solution browser window, but it cannot find it when I try to use it in the instructions using dllfilename, so I basically can not use the library. When I go to the object browser, I find the namespace of the project and its classes / methods, but I don’t see the link to the library, or at least its namespace or something else ...

+5
source share
3 answers

There is an error in VS2010. The solution is easy: Project -> Properties -> Application tab -> change the Target Framework to ".NET Framework 4", and not to the default client profile.

+4

using dllfilename. using NamespaceThatIsAccessibleFromDll;. , .

+4

Try the project, properties; on the application tab in the target structure, if you have the .NET Framework 4 (client profile) (or 4.5 Client Profile), then change it to the appropriate version without a client profile. It caught me several times - and I'm not alone -

Unable to see namespace

+1
source

All Articles