Compatibility between dotnetcore and framework 4.5

I am adding a new dotnetcore project (RC2) to my existing solution that contains a set of dotnet framewotk 4.5 projects.

When I try to add a link to my new dotnetcore project, I get a message that I can’t make a link from a project that targets framework 4.5.

The following projects are not supported by links: "project name" has target frames that are incompatible with the objectives in the current project "project name"

I followed this thread , but I did not find a clear solution to the problem.

What is the recommended approach for this situation?

+1
c # asp.net-core asp.net-core-mvc
source share
1 answer

Replace the library project file with the new Class Library (Portable) project (PCL). After that, you can set up a PCL profile or the new Net Standard

You can also have 2 split project files, creating the same source files, but each one targets different frames / targets (one for PCL, one for .NET fw).

Here you have it step by step: https://oren.codes/2016/06/23/portable-is-dead-long-live-netstandard/

+1
source share

All Articles