msbuild icon indicating copy to clipboard operation
msbuild copied to clipboard

[Bug]: Help message does not contain some switches (-getProperty, -getTargetResult)

Open ladipro opened this issue 1 year ago • 1 comments

Issue Description

Some of the supported command line switches are not mentioned in the help message. For example -getProperty and -getTargetResult but there may be more.

Steps to Reproduce

msbuild -h

Expected Behavior

Contains help for -getProperty.

Actual Behavior

Does not contain help for -getProperty.

Analysis

All switches should be cross-checked against the help message strings to see what else is missing. It may also be useful to introduce a lightweight mechanism for keeping help up-to-date, for example by having to list the relevant string resource ID in s_parameterlessSwitchesMap / s_parameterizedSwitchesMap.

Versions & Configurations

No response

ladipro avatar Feb 05 '24 12:02 ladipro

NOTE: Help message should also contain new switches -featureavailability and -fa from https://github.com/dotnet/msbuild/pull/9665

surayya-MS avatar Feb 05 '24 16:02 surayya-MS