LittleDragon
LittleDragon

Reputation: 2437

reference an existing .NET Framework Project in an ASP.NET Core

I have an existing project with .NET framework 4 its a business logic layer

I have created .NET core app with core framework and try to add exist business layer as reference and I tried with this example : How do I reference a .NET Framework project in a .NET Core project?

I also created core app with .net framework and try to add reference its also not work

please check the below images and give me help :)

---------  .net framework 

enter image description here

------ core project 

enter image description here

enter image description here

Upvotes: 8

Views: 8347

Answers (2)

LittleDragon
LittleDragon

Reputation: 2437

I got solution when u add the reference to .net framework core project you need to click restore packages button :)

and .net core frame work project can not add the .net framework project reference

enter image description here

Upvotes: 1

RonC
RonC

Reputation: 33771

According to the chart on this page: https://learn.microsoft.com/en-us/dotnet/articles/standard/library you need to upgrade your libraries to at least version 4.5 of the Framework.

I'm currently using version 4.6 of the Framework for my libraries and referencing them from an Asp.Net Core MVC Web Project without issue.

You may find these links helpful as well:

Upvotes: 4

Related Questions