-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make API documentation more version aware #226
Comments
I think there are two parts to this:
I think for item 1, we have a plan to add that capability in the future. For 2, we try to mindful of that for new or updated content in the text, but there's a lot of content that was simply migrated from MSDN as-is. It's a tricky issue to solve. |
@dend Can decide if we will resolve the issue? |
@mairaw I think identifying the differences could be automated. I imagine it would work like this:
This approach is likely going to have both false positives and false negatives, but I think it could still be helpful. |
@svick for the most part, I think the versioning infrastructure is in place - we use monikers when we reflect the assemblies, so we know which APIs are coming from where. Assemblies are not as helpful here, because they are not reflective of the version of the product all the time (e.g. older assembly used in both the new and the old release of a SDK). Given that the content is for the most part hand-written for the .NET platform, this is something that @mairaw can implement directly in the XML files, with conditionals, where sections of the content are only available for certain monikers. @Powerhelmsman let's keep this open until a resolution is in place! |
I understand that you know that. But how can I, as someone who might be interested in analyzing the API reference, learn that? |
@svick good point - I have it on the radar to document |
Another example of this can be seen in the docs for HashSet. If you scroll down you'll find there's a note in the remarks how |
#log-suggestion @dend |
🚀 ATTENTION: Internal request logged. |
@dend do you have something already logged to control which interfaces are shown for which version? |
@mairaw that is the work that @joelmartinez has done for |
Is it possible to make API documentation more version aware (.NET Core 1.0, .NET Core 2.0, etc)?
For example, look at MethodImplOptions enum for .NET Core 1.0. The note in Remarks looks a little bit alien as there is no Synchronized flag in .NET Core 1.0. That value appears only in .NET Core 2.0. So, remarks also might differ from version to version.
The text was updated successfully, but these errors were encountered: