title: Retargeting solution from .Net 4.0 to 4.5 - how to retarget the NuGet packages?
body: <p>I have migrated a solution that is currently targeting .NET 4.0 in VS2010 to VS2012 and now I would like to re-target it to .Net 4.5</p>
  
  <p>What I am not sure about is the NuGet packages. For example EF5, which I updated from EF4 in VS2010 turns out to be actually EF 4.4 as you can see here:</p>
  
  <pre><code>    &lt;Reference Include="EntityFramework, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL"&gt;
        &lt;SpecificVersion&gt;False&lt;/SpecificVersion&gt;
        &lt;HintPath&gt;..\packages\EntityFramework.5.0.0\lib\net40\EntityFramework.dll&lt;/HintPath&gt;
      &lt;/Reference&gt;
  </code></pre>
  
  <p>I can also see the following in packages.config for the project:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;packages&gt;
    &lt;package id="EntityFramework" version="5.0.0" targetFramework="net40" /&gt;
  &lt;/packages&gt;
  </code></pre>
  
  <p>So my question is:</p>
  
  <p>What is the best practice to re-target all NuGet packages that are currently set to target .NET 4.0 to target .NET 4.5?</p>