-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dotnet format throws because it can't determine file encodings in 9.0.200 #46780
Comments
I did try running |
Incase its useful in fixing this, we see similar today having taken 9.0.200, but on Windows only, our Mac arm64 users do not see the errors. May not apply to all cases, but if someone is looking at this and can't reproduce, try Windows. |
I am hitting this on linux after the 9.0.200 upgrade today. Same deal, |
I'm a Mac ARM 64 User and have the same issue. I don't think that its related to the platform. |
I'm seeing this on my Windows 11 machine and my GitHub action running on "ubuntu-latest" update: I'm on |
Describe the bug
It is no longer possible to use
dotnet format
without arguments to format code in certain projects because it has started throwing an error in 9.0.200.dotnet format --verify-no-changes
does still work however.What's worse, it doesn't specify what file might be the issue so it is very hard to figure out what might be going wrong.
To Reproduce
I'm not exactly sure since it doesn't tell me what file it has a problem with, but I'm just running
dotnet format
in an ASP.NET Core 9 project with about 1500 C# files.Exceptions (if any)
Further technical details
The error started showing up after installing Visual Studio 17.3, but it is also happening in WSL2 with the latest .NET SDK.
The text was updated successfully, but these errors were encountered: