I got an answer from a mod on MSDN forums. Basically MSBuild is extremely strict about dependencies where devenv just puts up warnings but carries on.
We ended up getting the go-ahead to move to .NET 4.5 entirely so we fixed the mismatch and ended up moving our build to MSBuild.