.net Change EntityFramework.dll to match my .net version
<p>So to solve another problem I inspected whether my version of EntityFramework.dll matches my version of .net, and it seems it doesn't. I am using .net 4.5 and my Object Browser tells me my version of EF is <code>\packages\EntityFramework.6.1.3\lib\net40\EntityFramework.dll</code>. That seems to imply that I have the EF for .net 4.0, not 4.5. </p>

<p>I don't know if this is the cause of the problem I'm dealing with but I want to try to update it, and it's proved extremely stubborn about not changing. I have tried the following:</p>

<ul>
<li>Uninstall-Package EntityFramework -Force followed by Install-Package EntityFramework </li>
<li>Remove package from my <code>references</code> and then added the package from somewhere that I have the most version for .net 4.5</li>
<li>Manually delete the EntityFramwork from my bin and lib folder and copied it from somewhere that I have the correct version</li>
</ul>

<p>No matter what I do, I still get the same version of EF. How do I change this?</p>

<p>I should add that in my packages.config file, the version of EF I want is referenced:</p>

<pre><code>  &lt;package id="EntityFramework" version="6.1.3" targetFramework="net451" /&gt;
</code></pre>

<p>However when I look at the properties of the EntityFramework.dll in Object browser I'm told that it's the version for 4.0, as can be seen in the picture below.<a href="https://i.stack.imgur.com/GhBqJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/GhBqJ.png" alt="EntityFramework version"></a></p>