F-H
F-H

Reputation: 1075

How to find out since which .NET Standard version a given type or member is supported?

For previous versions of the .NET Framework, the documentation on MSDN would allow you to find out which versions of the framework support a given type or member. For instance, if I open the documentation (any version, e.g. the most recent one) of System.Linq.Expressions.Expression, there is a version info section:

Version Info section on System.Linq.Expressions.Expression from MSDN

It tells me at a glance since which version of the .NET Framework, and also since which versions in other related frameworks such as Windows Phone or Silverlight the type has been available.

Alternatively, for the minimum .NET Framework version, I don't even have to scroll down: Opening the list of links to other documentation versions right in the page header is sufficient to see which Framework version is the earliest:

Page header on System.Linq.Expressions.Expression from MSDN

Now, I have learned from questions such as this one that documentation for .NET Standard can be found on the .NET API Browser.

There, I can apparently search all documentation versions for System.Linq.Expressions.Expression, which will successfully send me to the documentation on this class. Somehow, documentation is set to .NET 4.7 by default (latest framework version, maybe?).

But how can I see here in which versions the class is supported?

It's not the list of other documentation versions:

Page header on System.Linq.Expressions.Expression from .NET API Browser

While nicely structured, this popup displays all frameworks for which any documentation is available. If you pick a framework or framework version that does not support the currently selected namespace (try, for instance, System.Runtime.Serialization.SerializationInfo with .NET Standard 1.0), type, or member, you are automatically redirected to the documentation from the most recent framework version that does. Obviously, using this hit-and-miss approach to get a systematic overview of where a given namespace, type, or member is available is very tedious.

Upvotes: 2

Views: 3753

Answers (2)

F-H
F-H

Reputation: 1075

It seems this issue was fixed in the meantime: All type/member-related articles on learn.microsoft.com now contain an Applies to section that contains all the necessary information:

Applies to section from System.Linq.Expressions.Expression

Upvotes: 1

asherber
asherber

Reputation: 2713

I'm not sure if there's a better way, but you can try http://packagesearch.azurewebsites.net/

If you search for a type there, the site will show you which .NET Standard package the type is in, and also what versions of .NET Standard support that type.

Upvotes: 0

Related Questions