c# - Is paths interpretation on mono on mac different from the .net windows version? -
i'm translating app .net on windows mono on mac. found error happening, think related how backslash interpreted on mono - mac.
path.getdirectoryname("assembly\\file.dll")
on mono mac return empty string, on .net windows return "assembly". normal behaviour? can change way path interpreted kind of configuration, or need replace every backslash forwardslash?
on mono can use mono_iomap
environment variable ignore differences path ( windows case insensitive, unix case sensitive) , path separator ( '\' vs '/' )
see http://www.mono-project.com/docs/advanced/iomap/
the best long term solution anyway use methods path.combine
or path.directoryseparator
fix these problems
Comments
Post a Comment