当我的指令不在我的C:驱动器中时,.editorconfig在Visual Studio 2017中不起作用? [英] .editorconfig is not working in Visual Studio 2017 when my sotution is not in my C: drive?

查看:138
本文介绍了当我的指令不在我的C:驱动器中时,.editorconfig在Visual Studio 2017中不起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在解决方案基本文件夹中添加了.editorconfig文件,但是Visual Studio 2017继续使用其设置,但这仅在解决方案文件夹不在C:驱动器中时发生(如果解决方案文件夹在C:中).驱动器.editorconfig文件运行正常).

I have added a .editorconfig file at my solution base folder but Visual Studio 2017 keeps using its settings, but this happenes just when the solution folder is not in the C: drive (if the solution folder is in the C: drive .editorconfig file is working perfectly).

我还尝试将.editorconfig文件添加到解决方案的每个项目中,但是仍然存在相同的问题.

I have also tried to add .editorconfig file to each project of the solution but still the same problem.

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

Note that I have root = true in my .editorconfig file.

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

I am using the following version of Visual Studio:

Microsoft Visual Studio Community 2017版本15.2(26430.06)

Microsoft Visual Studio Community 2017 version 15.2 (26430.06)

推荐答案

我以某种方式想出了解决该问题的方法.

I somehow figured out how to solve this problem.

我的解决方案文件夹有一个名为方括号[]的父文件夹,就像这样的[ParentFolderName],所以我删除了方括号,一切正常.

My solution folder had a parent folder named between square brackets [] like this [ParentFolderName] so I removed the square brackets and everything worked as expected.

由于某种原因,当解决方案文件夹的父文件夹在方括号之间命名时,另一个editorconfig文件不执行任何操作. IDE(在我的情况下为Visual Studio 2017)使用其设置.

For a reason or another editorconfig file does not do anything when the solution folder has a parent folder named between square brackets. The IDE (in my case Visual Studio 2017) uses its settings.

这篇关于当我的指令不在我的C:驱动器中时,.editorconfig在Visual Studio 2017中不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆