Skip to content
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

C#: Fix attributes for sln/csproj files #91479

Merged
merged 1 commit into from
May 4, 2024

Conversation

Repiteo
Copy link
Contributor

@Repiteo Repiteo commented May 2, 2024

Windows can get somewhat finicky when handling .sln/.csproj files if the encoding isn't tailored to it specifically, and most of those files in our repo aren't doing so. This PR rectifies this issue by explicitly changing their encoding/eol from utf-8/lf to utf-8-bom/crlf. Tweaked .gitattributes and mono's .editorconfig to account for these changes.

Additionally, this fixed formatting in a handful of .csproj files and all .sln files. The former was two cases where tab indentation was 4 instead of 2. The latter was updating the solutions to their modern schema, which fixed some icon bugs on Windows (shell extensions are very picky).

@Repiteo Repiteo requested review from a team as code owners May 2, 2024 20:17
@akien-mga
Copy link
Member

akien-mga commented May 2, 2024

CC @shana

Edit: Nevermind I saw sln and thought Visual Studio, but it's .NET solutions. Feel free to chime in anyway though :P

@Repiteo Repiteo force-pushed the dotnet/sln-csproj-attributes branch from 1efc457 to 95f9f51 Compare May 3, 2024 14:08
@Repiteo Repiteo force-pushed the dotnet/sln-csproj-attributes branch from 95f9f51 to 97ec971 Compare May 3, 2024 17:15
@Repiteo Repiteo force-pushed the dotnet/sln-csproj-attributes branch from 97ec971 to 64f2e8b Compare May 3, 2024 17:21
Copy link
Member

@raulsntos raulsntos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@akien-mga akien-mga merged commit 629e91a into godotengine:master May 4, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@Repiteo Repiteo deleted the dotnet/sln-csproj-attributes branch May 4, 2024 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants