-
-
Notifications
You must be signed in to change notification settings - Fork 25
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
Super Quick Info Suggestion - Add Framework Availability Info #45
Comments
Nowadays VS gives warning in Quick Info for symbols which are not included in a target platform, if a solution/project has multiple targetting platforms and the symbol is not available in any one of them. |
I see. Thank you for considering it. The issue I am having is because I rely on Shared Projects a lot, with them being used in both .Net Frameworek-based projects and .Net Core-based projects (though in different solutions often), so VS in this case is not telling me whether a particular API is available. But, I understand that potentially it requires quite a bit of work, so maybe you can get back to it later, once you have worked on higher priority items. |
I understood your requirement. It is reasonable to have it, just like we need browser compatibility information for CSS properties or HTML elements, years ago. |
Yes, exactly like browser compatibility! I tried to figure out the API for getting member/type information on their website, but to my surprise it seems to be html-only (having rest API just for search). So I guess, at this point, it would be problematic to implement this feature, unless they provide a publicly accessible API. |
You may create a .NET Core project, including all source code files in your shared project, and change the target frameworks element ( |
Thank you for the tip. It would not work very well in my use cases however. Because the shared code files are used by many different projects, and not all those projects can be .Net Core projects yet. But I understand that my feature suggestion may be a bit out of scope for what you are working on. |
At this moment, you may need this tool: However, it has not been updated for quite some time. |
Thank you for pointing this out. But for me the need for this feature has mostly passed. It seems that VS has already started highlighting API availability issues in code. Plus with the unification of Mono and Core BCLs this is not as big of a deal anymore. |
Alright then. |
Perhaps you could further extend the Super Quick Info with information on whether the API is available in a particular framework (i.e. something like: ".Net Framework 4.5+, .Net Core 2.0+, ...").
The only feasible way to implement this that I see would probably to use ApisOf.Net website. Of course there will be some latency (not sure if it is even possible to update VS tooltip once it has been displayed), but at least it would be a much more convenient way to find out about framework differences than by going to the browser and manually looking for it.
Of course on top of that you can include additional info from the website, like popularity.
The text was updated successfully, but these errors were encountered: