Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

How to create NuGet package that targets .NET 5 or below. But not .NET 6 or above

$
0
0

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?


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>