Is there a consensus regarding which framework(s) a C# library should target when the goal is to publish it on NuGet and the author wants to reach developers who use “reasonably” up-to-date frameworks? In other words it’s safe to exclude outdated frameworks like net45, netstandard1.x, etc.
Microsoft’s web site has a page on this topic but it’s outdated. I tried to get them to update their guidance around the time .NET 8 was released but I was unsuccessful.
I realize this is somewhat subjective and different developers will have different opinions, but I’m curious if we can come to some sort of consensus and maybe propose it to the MS documentation team so they could include it in their guidance document.
Related to this: does anybody know of a web site and/or a tool that takes a list of targets as input and spits out the list of compatible frameworks similar to what you see when you click on the “frameworks” tab for a given package on the NuGet web site (such as this example)?