Click here to Skip to main content
15,790,976 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hi
i make a project in c# vs2019 and reference a dll (c#) in my project
but when try use some namespace in my project cant find
some namespace from some dll valid
anyone can help me for this ?

What I have tried:

i make a project in c# vs2019 and reference a dll (c#) in my project 
but when try use some namespace in my project cant find
some namespace from some dll valid
anyone can help me for this ?
Posted
Updated 27-Sep-20 8:38am
Comments
Richard Andrew x64 27-Sep-20 11:21am    
What language is the DLL written in?
Member 13654266 27-Sep-20 11:36am    
dll lan is same c#
make a small soft and need access to this dll namaspace
Richard MacCutchan 27-Sep-20 11:22am    
You need to provide more details. We cannot guess what code you have written.
Member 13654266 27-Sep-20 11:38am    
only need access to all namespace in this dll
Richard MacCutchan 27-Sep-20 11:50am    
Please read my previous comment again. We have no idea what namespaces you are referring to, what namespaces are defined in your dll, what code you are trying to use ...

1 solution

Adding a reference to each project in your solution is only part of it : once the reference is there then you may want to add a using block to each, just as you do for dot NET namespaces.
Hover the mouse over the red underline error indicator and use the drop down that appears to help you solve this.
I use a lot of separate assemblies in my projects, and have never had a problem accessing public classes from namespaces within them.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900