Feature Request: feature-test function
Open
Area: Language
needs-design
triaged
- Dominant language
- C#
- Stars
- 5.5k
- Forks
- 1.5k
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 141
Description
See also #2916
MSBuild.exe has supported `TaskHostFactory` since VS2012, but support only landed in the .NET SDK in version 17.1 (6.0.200).
It is possible to write a condition to test for both cases, including making use of a version comparison (assuming that's supported in older VS/SDKs).
However, it would be _far_ more convenient (and far less brittle) to have a property function available to test for this and other features, e.g. `Condition=" $([MSBuild]::HasFeature('task-host-factory')) "`. This would then require documenting the feature names for any other new features added in each release.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.