I had a similar problem. I created my application by invoking MSBuild, and found that when I tried to deploy the application web, I got this error. I fixed this by telling MSBuild to create using VS2012 by adding a command line switch to the MSBuild command:
/P:VisualStudioVersion=11.0
Customize your hat to this question .
dbruning
source share