Giter Club home page Giter Club logo

Comments (9)

wmjordan avatar wmjordan commented on May 18, 2024

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.
Occasionally, I had similar requirements like that. But it took not so much time I found it on MSDN, not only the first version which introduced the API but also its documentations. Since it happened so scarcely, I am not sure whether this feature should be included in Codist.

from codist.

fitdev avatar fitdev commented on May 18, 2024

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.

from codist.

wmjordan avatar wmjordan commented on May 18, 2024

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.
Could you please help provide some code about how to access the information exposed from ApisOf.net?

from codist.

fitdev avatar fitdev commented on May 18, 2024

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.

from codist.

wmjordan avatar wmjordan commented on May 18, 2024

You may create a .NET Core project, including all source code files in your shared project, and change the target frameworks element (Project/PropertyGroup/TargetFrameworks), listing all platforms your code targets there and let Visual Studio show the availability information to you.

from codist.

fitdev avatar fitdev commented on May 18, 2024

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.

from codist.

wmjordan avatar wmjordan commented on May 18, 2024

At this moment, you may need this tool:
https://marketplace.visualstudio.com/items?itemName=ConnieYau.NETPortabilityAnalyzer

However, it has not been updated for quite some time.

from codist.

fitdev avatar fitdev commented on May 18, 2024

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.

from codist.

wmjordan avatar wmjordan commented on May 18, 2024

Alright then.
I am closing this.

from codist.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.