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

Consider Ref suffix for more attributes #7585

Open
barnson opened this issue Jul 3, 2023 · 2 comments
Open

Consider Ref suffix for more attributes #7585

barnson opened this issue Jul 3, 2023 · 2 comments
Assignees
Labels
Milestone

Comments

@barnson
Copy link
Member

barnson commented Jul 3, 2023

  • Describe the scenario and benefits that the feature supports.

A change we made in the WiX v4 language was to consistently use -Ref for attributes that referenced another entity where then they were inconsistent (e.g., BinaryKey). Other attributes are also references but lack any suffix (e.g., Component/@Directory).

  • Describe how you're accomplishing the feature today (if possible).

n/a

  • Describe what you'd like the new feature to do.

Discuss whether this is actually a good idea.

@barnson barnson added the triage label Jul 3, 2023
@barnson barnson added compiler and removed triage labels Jul 11, 2023
@barnson barnson added this to the v5.0.0-preview.1 milestone Jul 11, 2023
@chrpai
Copy link

chrpai commented Jul 12, 2023

MSI uses Table_ In WiX, is there a difference between ElementName(Ref) and Attribute(Ref). If they both cause the compiler to search for fragments then I like Ref in the attribute name. If they don't then I don't like Ref in the Attribute name. Pick a different word suffix.

@BMurri
Copy link

BMurri commented Jul 12, 2023

BinaryKey refers to Binary/@key, correct?

An attribute that points to Directory/@id should then be DirectoryId, not DirectoryRef, if you are looking for consistency.

Or, use Ref consistently.

In the case of things like Shortcut, prefix "Directory" with the role that reference has in the shortcut (so, WorkingDirectoryId or WorkingDirectoryRef). That way, there's both consistency and elimination of ambiguity.

@robmen robmen modified the milestones: v5.0.0-rc.1, v.Future Mar 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants