Primeiro código do Entity Framework migra jogando erro
Aqui está o que eu fiz antes de receber este erro:
Instalado EF (a versão pré-lançamento, 6 talvez, eu não sei)decidi que eu não queria, então desinstalei e reinstalei a versão estável (5)Truncado meu banco de dados via SSMSaqui está o erro:
Exception calling "CreateInstanceFrom" with "8" argument(s): "Could not load file or
assembly 'EntityFramework, Version=5.0.0.0, Culture=neutral, PublicK
eyToken=b77a5c561934e089' or one of its dependencies. The located assembly's manifest
definition does not match the assembly reference. (Exception from H
RESULT: 0x80131040)"
At C:\Projects\BCATracker.Web\packages\EntityFramework.6.0.0-
alpha2\tools\EntityFramework.psm1:425 char:31
+ $domain.CreateInstanceFrom <<<< (
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : DotNetMethodTargetInvocation
Aqui está o que eu tentei:
Exclua everthing do diretório bin, reconstrua.remova o EF do nuget, apague o arquivo no diretório packages, readd ef in nuget.Olhando para o arquivo proj eu vejo isso:
<Reference Include="EntityFramework, Version=4.4.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\EntityFramework.5.0.0\lib\net40\EntityFramework.dll</HintPath>
</Reference>
O que poderia ser uma possível causa raiz?