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 creates empty files if non-existant file is given with charset #671
Comments
@legionaryu what are the names of these empty files? Can you provide steps to reproduce the issue? |
@jmarolf Just letting you know that I'm trying to isolate the issue because of the original project has sensitive information, so I cannot share it. |
Thanks @legionaryu! I understand that it can sometime be hard to reduce these cases. If you could tell me the version of |
Hi @jmarolf! My version of dotnet-format is 3.3.111304+7c8f67a570f5fde6a247704733d6742f93c0fa48 From my tests, I was able to conclude that if a non-existant file is referenced in the csproj and the .editorconfig explicitly set a charset, the formatter creates an empty file with its name. Here my csproj:
And here is my .editorconfig:
|
@legionaryu thanks! I've updated the title to reflect this. |
I'm using dotnet-format with Unity3D and for some reason every time I try to format using the project files generated by Unity3D , the dotnet-format creates some empty files and it breaks the Unity3D c-sharp compilation and I have to manually remove the empty files to make it work again.
For now, I'm formatting folders instead of the .sln/.csproj files.
The text was updated successfully, but these errors were encountered: