Reputation: 41
I am getting the below error:
System.IO.FileNotFoundException: 'Could not load file or assembly 'System.Data.OracleClient, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. The system cannot find the file specified.'
What I did:
How do we support accessing old .NET libraries built out earlier with lot of internal references in .NET Core project?
Upvotes: 1
Views: 2718
Reputation: 1545
Unfortunately, you cannot.
Your project built with .NET Core must have only libraries built for .NET Core. You can't use the one built for .NET Framework.
Here is a quote from the book ASP.NET Core in Action when deciding to develop with .NET Core rather than .NET Framework:
The largest obstacle you’re likely to come across is a third-party library holding you back, either because they only support older ASP.NET features, or they haven’t been converted to work with .NET Core yet.
Upvotes: 1