Query about references...

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I have a class library project called AD that talks to Active Directory via the System.DirectoryServices namespace. This library compiles fine. When I try and use AD in my web project, the web project won't build unless I add a reference to S.DS :

Classes in the AD library do not have any public members that refer to classes implemented in S.DS (it does have some internal and private ones that do) so why should it need the reference? I would have expected the compiler to follow the reference chain to get all the assemblies needed to build the project (i.e. web needs AD which needs S.DS so I'll fetch AD and S.DS to build web)

Is this behaviour right

Matt
 
This is the way it works. You will need to include the
System.DirectoryServices in your references to get the functionality into
the project.

I will check with the Visual Studio boys to confirm, but I believe this is
by design.


Sincerely,
Max Vaughn [MS]
Microsoft Developer Support


Disclaimer: This posting is provided "AS IS" with no warranties, and
confers no rights. You assume all risk for your use.
 
Back
Top