MSBuild TargetFrameworkVersion = v4.5.1 targets .Net Framework v4.0

I'm trying to build a project for several versions of the .Net Framework <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release 4.5|AnyCPU' "> <DebugType>pdbonly</