cake-build / cake-build/cake

Use OS-native directory separators in Path.FullPath

Open
#2,367 4 comments 4 reactions 0 assignees View on GitHub
Help wanted Improvement Up-for-grabs
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.