title: Alternative for LocalAppData environment variable on OSX
body: <p>I'm just writing my first .Net Core application and am knocking into an issue on OSX.</p>
  
  <p>I started writing this on PC and am just running some unit tests on OSX.</p>
  
  <p>This line:</p>
  
  <pre><code>var localAppData = Environment.GetEnvironmentVariable("LocalAppData");
  </code></pre>
  
  <p>Returned the expected value on PC but returns <code>null</code> on OSX.  What would be the tidiest way to make this cross-platform?</p>
  
  <p>Are there any additional considerations when applications are distributed in PKGs in terms of runtimes etc?</p>
  
  <p>Many of the answers I'm finding in realtion to this talk about adding things to the launchd.conf which is all well and good for my development environment but what about when this is being run on a users machine?</p>
  
  <p>What I'm trying is to find a way to retrieve some OSX equivalent of the Windows AppData.</p>
  
  <p>A location where users applications can safely create files and store data that preconfigured on every OSX system.</p>