cake-build/cake

Use OS-native directory separators in Path.FullPath

Open

#2,367 创建于 2018年11月25日

在 GitHub 查看
 (4 评论) (4 反应) (0 负责人)C# (738 fork)batch import
Help wantedImprovementUp-for-grabs

仓库指标

Star
 (3,742 star)
PR 合并指标
 (平均合并 1天 1小时) (30 天内合并 25 个 PR)

描述

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.)

贡献者指南