Skip to content

Conversation

@yuehuang010
Copy link
Contributor

Add Tooltip for MSBuild Properties in Preprocess View.

  • Add a simple tooltip that quickly shows the evaluated value for the property and the previous evaluations.
  • This feature saves time as it avoids a search in the "Properties and Item" tab.
  • I would like to add item group too, but the visual tends to be too long. The tooltip popup should first richer.

image

.Replace(@"$({0})=""{1}"" (", @"\$\((?<Name>\w+)\)="".*"" \(")
.Replace(@"{2}"")", @".*""\)")
.Replace(@"$({0})=""{1}"" (", @"\$\((?<Name>\w+)\)=""(?<NewValue>.*)"" \(")
.Replace(@"{2}"")", @"(?<OrgValue>.*)""\)")
Copy link
Owner

Choose a reason for hiding this comment

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

did you mean OldValue instead of OrgValue?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Org == Original, but Old is a better match for the 3 letter New.

}

// Search the "Property reassignment" folder.
var prFolder = this.PreprocessContext.Evaluation.Children.FirstOrDefault(p => p.Title == "Property reassignment");
Copy link
Owner

Choose a reason for hiding this comment

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

You can use the Strings.PropertyReassignment I think

@KirillOsenkov KirillOsenkov merged commit be0f8a8 into KirillOsenkov:main Jun 19, 2025
1 check passed
KirillOsenkov added a commit that referenced this pull request Jun 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants