Using Visual Studio 2019 16.5.3, Microsoft .NET Framework 4.803752. Build target is .Net Framework 4.6.1. I did NuGet install of EntityFramework 6.4, also have Roslyn. Not using .NET EntityFramework Core (not sure that's the correct name -- something Core).
When I do add-migration, I get error:
System.TypeLoadException: Could not load type 'System.Data.Entity.Infrastructure.Design.Executor+Scaffold' from assembly 'EntityFramework, Version=22.214.171.124, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
I wonder why EntityFramework version shows 126.96.36.199 rather than 6.4 -- is that a problem?
This all started during an effort to get TypeScript working in my project, which seemed to be OK until I tried add-migration.
I'll try stepping backwards from EntityFramework 6.4.
Any other ideas?
I had this error when using EntityFramework 6.3.0, downgrading it to 6.2.0 fix my issue.