dotnet / roslyn

The Roslyn .NET compiler provides C# and Visual Basic languages with rich code analysis APIs.
https://docs.microsoft.com/dotnet/csharp/roslyn-sdk/
MIT License
18.96k stars 4.03k forks source link

EditorConfig window will not save a file named .EditorConfig (PascalCase) #71772

Open vsfeedback opened 8 months ago

vsfeedback commented 8 months ago

This issue has been moved from a ticket on Developer Community.


No changes I make to the Editorconfig UI window make any changes to the on disk .editorconfig file. This is extremely frustrating and is clearly a very old error. Please let me know if I can provide more information. I can reproduce this issue 100% of the time.


Original Comments

Feedback Bot on 1/21/2024, 09:14 PM:

(private comment, text removed)

Wenwen Fan [MSFT] on 1/22/2024, 02:37 AM:

(private comment, text removed)

Anthony Popelar [MSFT] on 1/22/2024, 03:28 PM:

(private comment, text removed)

Wenwen Fan [MSFT] on 1/23/2024, 00:30 AM:

(private comment, text removed)


Original Solutions

(no solutions)

rgroenewoudt commented 8 months ago

We are also running in this the problem. However I found a workaround:

Adding to Directory.Build.Props:

 <ItemGroup>
    <AdditionalFiles Include="$(MSBuildThisFileDirectory)\.editorconfig" />
 </ItemGroup>

Now Visual Studio actually updates the .editorconfig file.