project-system
project-system copied to clipboard
`Rule.Default` is ignored for Launch Profiles
Visual Studio Version
2022 Preview
Summary
I've created an IRuleObjectProvider for a custom Launch Profile following the guide at https://github.com/dotnet/project-system/blob/main/docs/repo/property-pages/how-to-add-a-new-launch-profile-kind.md. However, for any StringProperty or even IntProperty, the Default property is ignored.
Steps to Reproduce
- Follow the steps in https://github.com/dotnet/project-system/blob/main/docs/repo/property-pages/how-to-add-a-new-launch-profile-kind.md to create a custom Launch Profile
- Assign a value to a
StringProperty.Defaultproperty. - Launch the Launch Profile UI in Visual Studio, select the launch profile, and notice that the fields are not populated with the default.
Expected Behavior
When creating a new Launch Profile using the IRuleObjectProvider API, and assigning values to the Default property of StringProperty and friends, when creating a new Launch Profile using the Visual Studio UI, then fields for each Rule should be populated with the value assigned to the Default property
Actual Behavior
The Visual Studio Launch Profile UI should populate the Rule fields with the value assigned to each rule's Default property.
User Impact
Users and developers are immensely annoyed.