dotnet / dotnet/project-system

Properly address property pages item ordering

Open
#7,025 7 comments 0 reactions 0 assignees View on GitHub
Feature-Project-Properties-Designer Triage-Investigate
Dominant language
C#
Stars
1k
Forks
415
PR merge metrics
No merged PRs in 30d

Description

Related: https://github.com/dotnet/project-system/issues/6989

Currently, CPS does not seem to maintain item ordering. This can be seen in the Target Framework dropdown. For now, we are putting in a hotfix to manually order these items. However, the proper fix has a couple options:

1. Investigate and fix CPS item ordering preservation
a. For target framework, the items are declared here and this ordering should be preserved: https://github.com/dotnet/sdk/blob/master/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.SupportedTargetFrameworks.props
2. Add functionality to the Rule definitions as to allow custom ordering.

These two options could both be completed, where the default is preserved ordering and it is optional to add your own ordering to the Rule definitions. When this PR is completed, please revert the hotfix here:

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.