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

sln-add: Remove default values #45940

Merged
merged 2 commits into from
Jan 15, 2025

Conversation

edvilme
Copy link
Member

@edvilme edvilme commented Jan 13, 2025

For compatibility and to avoid breaking changes, default configurations and platforms were kept when moving to vs-solutionpersistence. This is irrelevant to add by default to .slnx files (i.e., doesn't break anything and might be redundant)

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-CLI untriaged Request triage from a team member labels Jan 13, 2025
@edvilme
Copy link
Member Author

edvilme commented Jan 13, 2025

Also up for discussion: The use of Any CPU, x86 and x64 feels a bit redundant

@edvilme edvilme marked this pull request as ready for review January 13, 2025 23:41
@edvilme edvilme requested a review from a team January 13, 2025 23:41
@edvilme edvilme changed the title sln-add: Default values only for sln sln-add: Default values for sln only Jan 13, 2025
Copy link
Member

@MiYanni MiYanni left a comment

Choose a reason for hiding this comment

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

Does this PR only change indentation? Are you looking for feedback if the defaults should be changed?

@build-analysis build-analysis bot mentioned this pull request Jan 14, 2025
3 tasks
@kasperk81
Copy link
Contributor

hide the whilespace to see the change https://github.com/dotnet/sdk/pull/45940/files?w=1. it's moving configs to the sln only block

@edvilme
Copy link
Member Author

edvilme commented Jan 14, 2025

Does this PR only change indentation? Are you looking for feedback if the defaults should be changed?

It adds those configurations only for .sln files for backwards compatibility (not breaking any sln files). However, I do think the default configurations/platforms should maybe be reviewed (i.e., does it make sense to have them hardcoded?) :)

@edvilme edvilme changed the title sln-add: Default values for sln only sln-add: Remove default values Jan 14, 2025
@edvilme edvilme requested a review from MiYanni January 14, 2025 17:39
@kasperk81
Copy link
Contributor

since its inception, the sln-add command has always strived to match the behavior of Visual Studio

@edvilme edvilme force-pushed the edvilme-slnx-add-defaults branch from 73322e9 to 63a5e05 Compare January 14, 2025 19:31
@edvilme edvilme merged commit e97e9ad into dotnet:release/9.0.2xx Jan 15, 2025
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-CLI untriaged Request triage from a team member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants