If the project/solution path contains " - " the msbuilds will split the path and take it as another parameter.
MSBUILD : error MSB1001: Unknown switch.
Switch: -
For switch syntax, type "MSBuild /help"
MSBUILD : error MSB1001: Unknown switch.
Switch: -
For switch syntax, type "MSBuild /help"