Can’t build VC10 project by MSBuild

I have a VC10 project, and I want to build it by MSBuild from the command line. But it failed on my machine, see below figure for the error.

image

After some google, I get the reason for this:

image

As you can see, the Framework Version here in my environment is 2.0.50727. This is the cause of my problem.

原文地址:https://www.cnblogs.com/jalenwang/p/2301687.html