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

[Bug] Template csproj doesn't follow .editorconfig #1192

Open
Youssef1313 opened this issue Jan 26, 2025 · 0 comments
Open

[Bug] Template csproj doesn't follow .editorconfig #1192

Youssef1313 opened this issue Jan 26, 2025 · 0 comments
Labels
kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification.

Comments

@Youssef1313
Copy link
Member

Youssef1313 commented Jan 26, 2025

Current behavior

The .editorconfig provided in templates specifies 4 spaces in csproj, while the csproj in template uses 2 spaces.

Either .editorconfig should set indent_size to 2 for csproj, or csproj should match .editorconfig and use 4 spaces.

Note: VS default is to use 2 spaces which is more commonly used. So I'd strongly suggest to modify .editorconfig and not the csproj.

Note 2: The same probably applies to props/targets

Expected behavior

No discrepancy between .editorconfig and files that are part of the template. Creating a new project from template and invoking format command in VS should produce ZERO changes.

Affected platforms

No response

Template Host

dotnet new, but likely all others suffer the same issue.

Host OS

Windows, but likely all OSes suffer the same issue.

Template Options

Any template and any options

@Youssef1313 Youssef1313 added kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification. labels Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification.
Projects
None yet
Development

No branches or pull requests

1 participant