Use OS-native directory separators in Path.FullPath
- Dominant language
- C#
- Stars
- 4.2k
- Forks
- 778
- Avg merge
- 1h 15m
- Merged PRs (30d)
- 19
Description
There are applications which do not understand the alternate directory separator; for example, https://github.com/cake-build/cake/issues/2337. There have also been multiple CLI tools I've used where I had to do `.FullName.Replace('/', '\\')`.
Would you consider returning OS-native directory separators from `Path.FullName`? It will just work in all situations, and it will not stand out and look strange on Windows any longer even when it does work.
(At times, I've manually edited MSBuild logs etc so people don't ask why I'm using weird paths.)
Contributor guide
Research direction
Start by locating the Path.FullPath/FullName implementation and any path-related tests. Check the current separator behavior on each supported OS, then confirm that FullName returns the native separator for the relevant platform without breaking existing path behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100