When using the following scaffold-dbcontext command on package manage console with Oracle.EntityFrameworkCore(5.21.1) and Microsoft.entityframeworkconretools (both version 6.0.0-preview or version 5.0.5)
Scaffold-DbContext "Data Source=Data Source=(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=xxxdevl.apps.xxx.xxx.xxx)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=xxxx.xxx.xxx.xxx)));User Id=xxx;Password=xxxx;" Oracle.EntityFrameworkCore -OutputDir Models
Following error message appeared:
Build started...
Build succeeded.
Unhandled exception. System.BadImageFormatException: Could not load file or assembly 'C:\Users\xxx\.nuget\packages\microsoft.entityframeworkcore.tools\6.0.0-preview.1.21102.2\tools\netcoreapp2.0\any\ef.dll'. The module was expected to contain an assembly manifest.
File name: 'C:\Users\xxxx\.nuget\packages\microsoft.entityframeworkcore.tools\6.0.0-preview.1.21102.2\tools\netcoreapp2.0\any\ef.dll'
Please help.