title: MSBuild TargetFrameworkVersion = v4.5.1 targets .Net Framework v4.0
body: <p>I'm trying to build a project for several versions of the .Net Framework</p>
  
  <pre><code>  &lt;PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release 4.5|AnyCPU' "&gt;
      &lt;DebugType&gt;pdbonly&lt;/DebugType&gt;
      &lt;Optimize&gt;true&lt;/Optimize&gt;
      &lt;OutputPath&gt;bin\Release\net45&lt;/OutputPath&gt;
      &lt;DefineConstants&gt;TRACE&lt;/DefineConstants&gt;
      &lt;ErrorReport&gt;prompt&lt;/ErrorReport&gt;
      &lt;WarningLevel&gt;4&lt;/WarningLevel&gt;
      &lt;TargetFrameworkVersion&gt;v4.5&lt;/TargetFrameworkVersion&gt;
      &lt;Prefer32Bit&gt;false&lt;/Prefer32Bit&gt;
    &lt;/PropertyGroup&gt;
    &lt;PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release 4.5.1|AnyCPU' "&gt;
      &lt;DebugType&gt;pdbonly&lt;/DebugType&gt;
      &lt;Optimize&gt;true&lt;/Optimize&gt;
      &lt;OutputPath&gt;bin\Release\net451&lt;/OutputPath&gt;
      &lt;DefineConstants&gt;TRACE&lt;/DefineConstants&gt;
      &lt;ErrorReport&gt;prompt&lt;/ErrorReport&gt;
      &lt;WarningLevel&gt;4&lt;/WarningLevel&gt;
      &lt;TargetFrameworkVersion&gt;v4.5.1&lt;/TargetFrameworkVersion&gt;
      &lt;Prefer32Bit&gt;false&lt;/Prefer32Bit&gt;
    &lt;/PropertyGroup&gt;
  </code></pre>
  
  <p>When I build the project with MSBuild and look at the produced assemblies in dotPeek i get the following results</p>
  
  <p>v4.0 gives me .Net Framework v4.0<br>
  v4.5 gives me .Net Framework v4.5<br>
  v4.5.1 gives me .Net Framework v4.0<br></p>
  
  <p>How come targeting 4.5.1 gives me .Net Framework v4.0 I would think it would at least be 4.5, am I missing anything? </p>
  
  <p>Please tell me if you need more information!</p>