Question: I need to run some Active Directory queries with a new ASP.NET Core 2.0 web application. Microsoft's documentation says the System.DirectoryServices.AccountManagement [libraries are available](https://learn.microsoft.com/en-us/dotnet/api/?view=netcore-2.0&term=System.DirectoryServices) as part of .NET Core 2.0. 

How do I find the associated packages in NuGet which include this namespace? The only one I see in NuGet is an unsupported library by someone other than Microsoft.

Answer: 
As I see it now in NetCore 2.2 there is support for this package:

> 
> System.DirectoryServices.AccountManagement
> 
> 
> 

You can find it in nuget.

Author is Microsoft and

Date Published: Tuesday, May 29, 2018 (5/29/2018)
With "Microsoft.Windows.Compatibility", it will compile but you'll get a platform not supported exception at runtime if you are not running on Windows.

```
    Unhandled Exception: System.PlatformNotSupportedException: System.DirectoryServices is not supported on this platform.
     at System.DirectoryServices.DirectoryEntry..ctor(String path)
     at ad_test.ActiveDirectoryClient.GetUsername(String emailAddress) in .../ad-test/ActiveDirectoryClient.cs:line 24
     at ad_test.Program.Main(String[] args) in .../ad-test/Program.cs:line 11

```