Przemyslav
Przemyslav

Reputation: 1

Referencing legacy .NET project in newer framework and with package version discrepancies

I need to setup an ASP.NET Core Web API and reference in it my other project which is written to run on .NET 4.6.1 (and it is using Entity Framework Core 3.6.1).

I found this article saying that to reference a .NET Framework 4.6.1 Assembly I need to use .NET Core 2.0. So using it and starting new project netcoreapp2.0 I am referencing to Microsoft.AspNetCore.All v2.0.9 which is referencing to Entity Framework Core v2.0.3. And this makes my old assembly incompatible with the new one. At least the I get such notifications when I am to build new project.

Is there a proper way to reference such a legacy assembly?

I have already tried:

Upvotes: 0

Views: 52

Answers (0)

Related Questions