Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use .Net framework 4.7.2 in .net 6 application

Tags:

c#

.net

.net-core

I am trying to find out if it is possible to use a .Net Framework 4.7.2 assembly in another .Net 6 libraries or .Net 6 application. I tried this with some sample projects, and at least I could add a reference to a .NET 4.7.2 in .NET 6 library or application. But based on some posts at Stack Overflow (Can I add a reference to a .NET Framework DLL from a .NET 6 project?) and reading the .Net compatibility, it seems not to be possible.

So is it possible or not?

To be honest, the huge amount of different .NET flavors and the continuous renaming makes it really hard to see the wood for the trees.

like image 450
Franz Gsell Avatar asked Oct 31 '25 03:10

Franz Gsell


1 Answers

There is a compatibility mode in .NET 5+ and .NET Core 3.1 that should allow you to do what you want. Check it out here!

like image 192
tommasodotNET Avatar answered Nov 01 '25 18:11

tommasodotNET



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!