MSBuild error MSB8000

MSB8000: "name" is an invalid value for the "Type" parameter. Valid values are: Warning and Error.

To resolve this issue, use Warning or Error for the Type parameter.