title: .NET Core - File paths from Path.Combine do not work in Docker
body: <p>I’m trying to get my application running in a Docker container. Now I have a problem with file paths that are generated by dotnet core. </p>
  
  <p>I changed my file paths according to this entry: <a href="https://stackoverflow.com/questions/38168391/cross-platform-file-name-handling-in-net-core?utm_medium=organic&amp;utm_source=google_rich_qa&amp;utm_campaign=google_rich_qa">Cross-platform file name handling in .NET Core</a> </p>
  
  <p>The output from dotnet core is the following for the path: <strong>/app/\foo/bar.txt</strong> <em>(This throws a ‘Could not find part of the path’ exeption.)</em></p>
  
  <p>If I hard code the path like this, it works: <strong>/app/foo/bar.txt</strong></p>
  
  <p>What can I change to get it working on Linux and Windows?</p>