Skip to content

C# source files should have a byte order mark #28697

@sharwell

Description

@sharwell

Currently source files in this repository are inheriting an unexpected charset value of utf-8 from the [*] group of .editorconfig:

aspnetcore/.editorconfig

Lines 16 to 24 in 2121105

[*]
indent_style = space
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.cs]
indent_size = 4
dotnet_sort_system_directives_first = true

C# source files should be encoded with byte order mark (charset = utf-8-bom) to avoid cases where an editor incorrectly interprets the files as an incompatible system default encoding (e.g. ANSI).

I'm happy to submit a pull request to normalize the files in this repository, at which point it would match other repositories like dotnet/runtime and dotnet/roslyn.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-infrastructureIncludes: MSBuild projects/targets, build scripts, CI, Installers and shared frameworkquestion

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions