title: Read User profile relative files on dotnet core
body: <p>How does one correctly deal with file paths using dotnet core in a platform agnostic way? i.e. I am using a Mac and when trying to open a file relative to my user profile</p>
  
  <pre><code>var file="~/Downloads/example.zip";
  var fullPath = Path.GetFullPath(file);
  </code></pre>
  
  <p>returns</p>
  
  <pre><code>/Users/Me/Projects/Test/Test/~/Downloads/example.zip
  </code></pre>