title: How can I get CPU name in .NET Core?
body: <p>Given that  <em>WMI</em> is <em>Windows</em> only and the absence of a registry in operating systems such as <em>Linux</em> and <em>Mac</em>, how could one obtain processor name in <em>.NET Core</em>?</p>
  <p>I intend to make the following method (which uses registry) cross platform:</p>
  <pre><code>private static string GetProcessorName()
  {
      var key = Registry.LocalMachine.OpenSubKey(@&quot;HARDWARE\DESCRIPTION\System\CentralProcessor\0\&quot;);
      return key?.GetValue(&quot;ProcessorNameString&quot;).ToString() ?? &quot;Not Found&quot;;
  }
  </code></pre>
  <p>You can assume that I can tell at runtime what <em>OS</em> I am running under.</p>