Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

dotnet format makes no changes, but --check reports encoding issues #507

Copy link
Copy link

Description

@owensearls
Issue body actions

After upgrading to the latest release of this package, version 3.2.107702, when I ran dotnet format for the first time it modified the encoding of some files. After that, running dotnet format makes no changes, but when I run dotnet format --check --dry-run it returns a non zero exit code and prints and message about the encoding of almost every file in my project.

MyProject/Whatever.cs(1,1): Fix file encoding.

When I run with or without the check flags, it prints a message saying it formatted every file in my project, which is also new, but nothing has changed, at least that git can detect.

Formatted code file 'Whatever.cs'.

I am using the editorconfig option charset = utf-8, and have observed this issue on MacOS and linux.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugThis issue describes behavior that is not working as expectedThis issue describes behavior that is not working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.