Skip to content

Enable MSBuild Language forward compatibility for Property[Group] language elements #14512

Description

@baronfel

Summary

To support exploration of future ways to process MSBuild files, we want to support grammar elements like metadata on language elements that do not support them today:

  • PropertyGroup
  • Property

Background and Motivation

We want to allow for experimentation in how MSBuild language files are processed, but do so in a way where the language files remain usable in 'base' MSBuild as well. To support this, we'd like to support metadata on most/all language nodes that would participate in this alternate processing so that experimentation can happen without changes being required in the MSBuild core. As findings solidify, we can promote these metadata to first-class items.

Proposed Feature

Enable the parsing and transport of Metadata on PropertyGroups and Properties like is done for Items today.

In addition, we would like to support some kind of guardrails to help prevent against typos, like is possible with the known MSBuild Item metadata, so defining a mechanism for that that is forward-compatible and malleable as experiments are run would be good.

Alternative Designs

No response

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions