title: What is the best way to test at runtime whether .NET Core application is running on Windows or Linux?
body: <p>What is the best way to test at runtime whether the application is running on Windows or Linux, with .NET Core 2.0 ? </p>
  
  <p>Imagine for instance I've got a .NET Core application deployed on both Windows and Linux machines, and it needs to access local resources stored in files. Obviously, the path (and path format) to those files will be different, so what would be the best way to go about it?</p>