title: Entity Framework won't install properly, Enable-Migrations command fails
body: <p>I am trying to follow this tutorial: <a href="https://docs.microsoft.com/en-us/ef/ef6/modeling/code-first/migrations/" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/ef/ef6/modeling/code-first/migrations/</a></p>
  
  <p>I am using Visual Studio 2017 and Net 4.6.1.</p>
  
  <p>Right off the bat, things seem to go wrong. When I use the command <code>Install-Package EntityFramework</code> in the Package Manager Console, I get this warning:</p>
  
  <blockquote>
    <p>Missing function body in function declaration.</p>
    
    <p>At C:\Users\TC\Documents\Temp\Entity Framework Example\MigrationsDemo\packages\EntityFramework.6.4.0\tools\EntityFramework6.PS2.psm1:241 char:5<br>
    +      &lt;&lt;&lt;&lt; WarnIfOtherEFs 'Enable-Migrations'<br>
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException<br>
    + FullyQualifiedErrorId : MissingFunctionBody</p>
    
    <p>Import-Module : The module to process 'EntityFramework6.PS2.psm1', listed in field 'ModuleToProcess' of module manifest 'C:\Users\TC\Documents\Temp\Entity Framework Example\MigrationsDemo\packages\EntityFramework.6.4.0\tools\EntityFramework6.PS2.psd1' was not processed because no valid module was found in any module directory.</p>
    
    <p>At C:\Users\TC\Documents\Temp\Entity Framework Example\MigrationsDemo\packages\EntityFramework.6.4.0\tools\init.ps1:11 char:18<br>
    + Import-Module &lt;&lt;&lt;&lt;  (Join-Path $PSScriptRoot 'EntityFramework6.PS2.psd1')<br>
    + CategoryInfo          : ResourceUnavailable: (EntityFramework6.PS2:String) [Import-Module], FileNotFoundException<br>
    + FullyQualifiedErrorId : Modules_ModuleFileNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand</p>
  </blockquote>
  
  <p>If I continue with the tutorial, everything works perfectly until I get to the step where I run <code>Enable-Migrations</code> in the Package Manager Console. That command fails with this error:</p>
  
  <blockquote>
    <p>The term 'Enable-Migrations' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.</p>
    
    <p>At line:1 char:18<br>
    + Enable-Migrations &lt;&lt;&lt;&lt;<br>
    + CategoryInfo          : ObjectNotFound: (Enable-Migrations:String) [], CommandNotFoundException<br>
    + FullyQualifiedErrorId : CommandNotFoundException</p>
  </blockquote>
  
  <p>Why am I getting this error, and what can I do to fix it?</p>
  
  <p><strong>Edit</strong></p>
  
  <p>I thought it might help to upgrade my development environment, so I switched to Visual Studio 2019 and targeted Net 4.7.2. I continue to get the exact same errors.</p>
  
  <p>Can someone please tell me whether you can recreate the behavior I describe? It would be a big help to my debugging process to know whether the problem is on my end, or whether there is something wrong with EntityFramework which is causing the same errors for everyone.</p>
  
  <p><strong>Edit</strong></p>
  
  <p>Still trying to find a fix, I've been trying older versions of Entity Framework. The current version is 6.4.0 – doesn't work. The previous version is 6.3.0 – doesn't work. The version before that is 6.2.0 – works without a hitch. So, I'm going to start developing my project using 6.2.0. If anyone knows why the newer versions fail, please tell me. I'd like to be on the most recent version.</p>