[Bug]: Specifying -graphBuild twice causes misleading error MSB1057
- Dominant language
- C#
- Stars
- 5.5k
- Forks
- 1.5k
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 133
Description
### Issue Description
For ordinary MSBuild command-line arguments, redundant arguments are accepted (for instance, setting defaults in Directory.Build.rsp and overriding them at the command line). But if `-graphBuild` is specified more than once, an error occurs.
### Steps to Reproduce
`dotnet msbuild -t:Build -graphBuild:True -graphBuild:True MyProj.csproj`
### Expected Behavior
Argument override is accepted.
### Actual Behavior
```
MSBuild version 17.10.4+10fbfbf2e for .NET
MSBUILD : error MSB1057: Graph build value is not valid.
Switch: True
```
### Analysis
_No response_
### Versions & Configurations
dotnet: 8.0.304
MSBuild: 17.10.4.21802
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.