I try to access an OLE database in order to use it in a Windows Forms .NET Core Application in Visual Studio 2019 and I obtain the next error:
System.Data.OleDb is not supported on this platform.
As the error says a winforms program targeting .NET 5 , OLE DB 7.0.0 cannot run on that version of .NET .
The solution is: the same program target .Net 6.0 works perfectly in VS2022.