I need to get the hardware ID (CPU ID) of the host using .NET Core 2. How can this be done?
The System.Management class from .NET has not been ported to .NET Core. Is there a cross-platform alternative to this (macOS, Linux, and Windows)?
I need to get the hardware ID (CPU ID) of the host using .NET Core 2. How can this be done?
The System.Management class from .NET has not been ported to .NET Core. Is there a cross-platform alternative to this (macOS, Linux, and Windows)?
Classes from System.Management namespace are available to .NET Core applications via Windows Compatibility Pack developed by Microsoft. You can reference either whole Microsoft.Windows.Compatibility metapackage, or (if you don't need other classes) just standalone System.Management package.