Issue Description
When building project and passing the not valid property name from command line, the build does not report the error.
Example of the invocation:
dotnet msbuild .\projectfile.csproj /p:"property name"="property value"
Expected Behavior
The error to be reported 100% of the time.
MSBUILD : error MSB4177: Invalid property. The name "property name" contains an invalid character " ".
Actual Behavior
Some versions do not report the error.
I was not able to repro it via latest main branch.
Todo:
- Understand the reason why the error not reporting in 17.9.x
- Check if it is fixed in latest main
- Add tests to the scenario