I'm creating a project targetting dotnetcore 2.0.
According to the MSDN, System.DirectoryServices.ActiveDirectory should be usable in .net core 2.0 but I get an error that it can't find DirectoryServices under System.
The method I need is GetComputerDomain()
Is their an alternative for .net core 2.0?
I'm looking for an alternative to
using System.DirectoryServices.ActiveDirectory
var domain = Domain.GetComputerDomain();
??
WOuld like to be able to get the domain on windows and linux machines.