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.
I changed my file paths according to this entry: Cross-platform file name handling in .NET Core
The output from dotnet core is the following for the path: /app/\foo/bar.txt (This throws a ‘Could not find part of the path’ exeption.)
If I hard code the path like this, it works: /app/foo/bar.txt
What can I change to get it working on Linux and Windows?