How should I handle windows/Linux paths in c#
You can use the Path.DirectorySeparatorChar
constant, which will be either \
or /
.
Alternatively, create paths using Path.Combine
, which will automatically insert the correct separator.
How about using System.IO.Path.Combine to form your paths?