Use .NET 6 class library in >NET 4.7 ASP.NET Website

402 Views Asked by At

Is that possible that a class library which is created in >NET 6 can be used as reference in ASP.NET Website created in .NET 4.7 framework

I didn't try any thing yet

1

There are 1 best solutions below

1
Martin On

If you can build the .NET 6 package as .NET Standard library then yes. Otherwise not.

For example a .NET Standard 2.0 library can be used in:

.NET Framework 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1