Reputation: 8162
I have created a class library with target framework 4.0 and some classes in it that deal with database connections for SQLite.
Now I want to use that class library in another project, to have it connect to databases, query data, update rows and so on.
But when I "add reference" in the testproject, it seems "empty", i.e. in the object catalog, I cannot expand the referenced library.
And when typing the using statement, it says it is not known namespace.
What is wrong? Please help.
Upvotes: 0
Views: 1242
Reputation: 8162
The solution was making the classes in den external assembly public.
Just forgot about that, after moving classes from testproject to classlibrary. Thank you for helping!
Upvotes: 0
Reputation: 38079
Your assembly may be using code that requires the full .net profile instead of the client .net profile. Try changing the profile of the new project from Client to Full and see if that helps.
Upvotes: 0
Reputation: 3355
In the 'Solution Explorer' Right Click 'References' and then select 'Add Reference'.
http://msdn.microsoft.com/en-us/library/wkze6zky(v=vs.90).aspx
Upvotes: 0
Reputation: 14012
Stupid question really but are the classes definitely public in your external assembly?
Upvotes: 2