The following bug has been closed: "MSBuild returning incorrect output - ID: 2048669", though I can confirm it still exists as of v3.0.4624.0. It should be reopened and fixed.
Dupe of bug 2048669
Dupe of bug 2048669