dotnet format makes no changes, but --check reports encoding issues
See original GitHub issueAfter 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.
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
dotnet format command - .NET CLI
Verifies that no formatting changes would be performed. Terminates with a non zero exit code if any files would have been formatted. --include...
Read more >Editorconfig setting end_of_line = crlf not respected for " ...
Execute “File -> Save As” and select the pulldown to see the encoding of the file. It reports “UTF-8 without signature”. Changed the...
Read more >Correctly reading encoded text with the StreamReader in .NET
I think the best solution is to change the encoding type of the original document to be Unicode or UTF-8, rather than ANSI...
Read more >How to set standard encoding in Visual Studio
Click the "Encoding" drop-down list box, drag the scroll bar to the top, and select "Unicode (UTF-8 with signature) - Codepage 65001". Click...
Read more >Fix common formatting issues for custom parameters
1. Prepare the custom parameters (also called key/values) you'd like to send to Google Ads. · 2. Append the string to pixel's URL...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@schmitch I just published 3.3.111304 to NuGet. Thanks for using dotnet-format!
@JoeRobich will there be a new 3.2 release soon? I accidently installed the latest
dotnet-format
on our ci servers and needed to downgrade the tool afterwards since we usedotnet-format --check
their, which failed because of this.