I've a scenario where the nuget package should be allowed to be referenced on .NET 5 or below projects. But not on .NET 6 and above.
The reason being, my library works until .NET 5 but breaks in .NET 6. Although I've documented it, I want to prevent the users from installing the wrong version. Do we have a way to achieve this?