c# - 当我的解决方案不在我的 C : drive? 中时,.editorconfig 在 Visual Studio 2017 中不起作用

标签 c# visual-studio-2017 visual-studio-community editorconfig

我在我的解决方案基础文件夹中添加了一个 .editorconfig 文件,但是 Visual Studio 2017 继续使用它的设置,但是当解决方案文件夹不在 C: 驱动器中时(如果解决方案文件夹位于 C: 驱动器 .editorconfig 文件运行正常)。

我也尝试将 .editorconfig 文件添加到解决方案的每个项目,但仍然是同样的问题。

请注意,我的 .editorconfig 文件中有 root = true

我正在使用以下版本的 Visual Studio:

Microsoft Visual Studio Community 2017 version 15.2 (26430.06)

最佳答案

我不知怎么想出了解决这个问题的办法。

我的解决方案文件夹有一个在方括号 [] 之间命名的父文件夹,就像这样 [ParentFolderName] 所以我删除了方括号,一切都按预期工作。

由于某种原因或另一个 editorconfig 文件在解决方案文件夹具有在方括号之间命名的父文件夹时不执行任何操作。 IDE(在我的例子中是 Visual Studio 2017)使用它的设置。

关于c# - 当我的解决方案不在我的 C : drive? 中时,.editorconfig 在 Visual Studio 2017 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44079291/

相关文章:

c# - LINQ 中不区分大小写的 LIKE 条件(使用正则表达式)

asp.net - Visual Studio Publish 的动态文件夹名称

c++ - 在 VS17 上链接库失败并显示 LINK1181

c++ - 错误无法打开包含文件 : 'GLES2/gl2.h' : No such file or directory suddenly appears

c# - 我需要许可证才能从 visual studio 社区实现软件吗?

visual-studio - Visual Studio Community 2015 安装失败

c# - 序列化对函数的调用

c# - 将DataMemberAttribute 放在接口(interface)成员上是什么意思?

c# - 类构造函数方法中与 IoC 的代码契约

c++ - 以基类为模板参数继承基构造函数(MSVC)