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: 
Unfortunately, [System.DirectoryServices are scheduled for .net core 2.1 not .net core 2.0](https://github.com/dotnet/standard/pull/444).

<https://github.com/dotnet/corefx/issues/2089> is the original issue log
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

```