Derive the Reference Assembly from using directive

S

SD WinGirl

Is there anyway to programmatically determine which reference assembly
to add when the code has a using directive?

For example if the code has
using System.XML;
I need to add a reference to the System.XML.dll assembly.

Can I somehow determine which assembly to reference from that
namespace?
Is there a MS naming convention I can rely on to make that connection?

Thanks.
 
G

Guest

No, because namespaces and assemblies do not have a one-to-one relationship. One assembly can contain many namespaces and one namespace can span several assemblies
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top