title: Environment.MachineName equivalent for .NET Standard 1.4
body: <p>I am creating a class library that will be used in a WPF project and a .NET Core project. I am trying to get the name of the machine using my application.</p>
  
  <p>In both .NET Core and the WPF application I can use <code>Environment.MachineName</code> value. However in my .NET Standard Class library I cannot. </p>
  
  <p>I get the following error:</p>
  
  <blockquote>
    <p>'Environment' does not contain a definition for 'MachineName'</p>
  </blockquote>
  
  <p>I tried doing what the answer suggested in <a href="https://stackoverflow.com/questions/32876966/how-to-get-local-host-name-in-c-sharp-on-a-windows-10-universal-app">this question</a> but when I try to add <code>System.Windows.Networking.Connectivity.NetworkInformation.GetHostNames()</code> I get the following error:</p>
  
  <blockquote>
    <p>The name 'Windows' does not exist in the current context</p>
  </blockquote>
  
  <p>I assume that this only works for Windows 10 Universal Apps? Either way I would prefer a platform independent way of getting the machine name (this way seems like its meant for windows machines only)</p>