-3

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

3
  • 2
    Only if that class library is targetting .NET Standard 2.0 - otherwise no, you can't do that Commented Mar 13, 2023 at 7:01
  • 2
    I didn't try any thing yet Please do not ask questions without have tried anything. How to ask Commented Mar 13, 2023 at 7:10
  • This has been asked and answered multiple times, and is fully documented. .NET 6 is .NET Core 6 and can't be used in .NET Framework. .NET Framework can only use .NET Framework or .NET Standard 2.0 libraries Commented Jun 26 at 7:27

1 Answer 1

2

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

Sign up to request clarification or add additional context in comments.

1 Comment

And it has to be .NET Standard 2.0 - not 2.1 - to support the "old" .NET framework ..

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.