.Net Core - How to reference DotNet Core Class Library in .Net Framework Windows WPF
Why Stack Overflow recommends it
Stack Overflow users link it when answering how to use a .NET Core library from a .NET Framework project, usually as a walkthrough of the multi-targeting approach.
Recommended by 2 people across 2 different months, 2018 to 2023.
What it is
A short tutorial by AngelSix showing how to reference a .NET Core class library from an existing .NET Framework application such as WPF, Windows Forms, a console app or another class library. It walks through the project setup needed to make the cross-framework reference work.
What people said
Recommends CodingYourLife · 2018-05 · Stack Overflow · on “How to reference a dotNet Core project?”
I found this [this video] . The easiest way is to write this in the *.csproj <TargetFrameworks>netcoreapp2.0;net462</TargetFrameworks> instead of this <TargetFramework>netcoreapp2.0</TargetFramework> Important notes: don't forget the extra s in targetframework S . You should at least have Runtime and DevPack of .NET Core 4.6.2.( get it here [LINK] ). After the change you often have to right click unload and then right click reload the project.
Recommends Titus Zaman · 2023-01 · Stack Overflow · on “Is it possible to use class library written in CORE 6 in another core 6 and/or NET 4.8 framework project”
Yes it is possible. First you should use multiple frameworks and then you need to make nuget package of class library here is the exampl [this video]
Cites TheRealVira · 2019-02 · Stack Overflow · on “Reference a .NET Core 3.0 library in .NET 4.8?”
I have been trying to follow some already existing tutorials and stackoverflow questions/answers, but nothing seems to be working; Reference a .NET Core Library in a .NET 4.6 project [LINK] Referencing .NET Core library in .NET 4.5.2 [LINK] [this video] I am working in Visual Studio 2019 V16.0.0 Preview 2.2, if that is relevant.