dotnet / dotnet/msbuild

Suggestion - Add a reserved PropertyGroup / ItemGroup Type

Open
#11,189 0 comments 1 reaction 0 assignees View on GitHub
triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 8h
Merged PRs (30d)
141

Description

### Context

If we are ever going to lift the 'sensitive data as a 1st class citizen' topic (https://github.com/dotnet/msbuild/blob/main/documentation/specs/proposed/security-metadata.md) - the nonbreaking way of marking the data type(s) would be handy.

To prepare for this we should consider adding the 'Type' attribute to PropertyGroup / ItemGroup that is accepted, but not interpreted in any way - similarly to the 'Label' attribute:
https://github.com/dotnet/msbuild/blob/a71903d9684e24db3db261b27ca73c0ef879cf81/src/MSBuild/MSBuild/Microsoft.Build.Core.xsd#L150-L154

This way we could then add the interpretation in future release, while not requiring backward incompatible formats.

Downside - The incompatibility of such marking with old .NET Framework versions of MSBuild would still not be prevented.
However it's very cheap and low risk change, that should be considered even if it's highly likely we won't use it in the future - as they say 'next best time is now'

FYI - @rainersigwald, @baronfel

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.