Open vlada-shubina opened 2 years ago
@baronfel / @JanKrivanek please feel free to put more info if needed
As mentioned in #4798:
The problem with that is that
dotnet format
doesn't support files like .csproj .sln, .cshtml .razor, or other template files likeappsettings.json
, etc.I wonder if
dotnet format
should add support for basic EditorConfig formatting in all (most) file types.
I've opened https://github.com/dotnet/format/issues/1798.
Seems this is still triaged into 8.0. Can we look at this for an upcoming SDK release?
We should remove that assignment - we need to triage this again now that templating has moved teams.
Background
After the template is generated by
dotnet new
, it might not match formatting defined in.editorconfig
in the output location. Visual Studio applies.editorconfig
rules to generated files, making behavior different Audience: usersTechnical details
Raw thoughts
dotnet format
afterdotnet new
to format the contentdotnet new
closer to Visual Studio behavior--langVersion
parameter in SDK templates (?)Justification
dotnet format
after the template is run