Comments (9)
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.
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.
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.
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.
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.
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.
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.
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.
Alright then.
I am closing this.
from codist.
Related Issues (20)
- "private member" comes with wrong foreground color HOT 4
- VS Freeze and Crash when clicking on "All Languages" HOT 4
- v7.7 加载错误 HOT 2
- SyntaxHighliting doesnt work on VS2022 17.7.1 HOT 6
- "private member" foreground color doesnt work HOT 5
- Syntax styles not saved/restored HOT 10
- Unable to cast object of type ContainerElement to type ClassifiedTextElement HOT 1
- 在 VS2022 更新至 17.7.3 后 方法色彩失效 HOT 7
- Editor window display optimization could crash VS HOT 2
- Suggestion: 大文件语法着色禁用 HOT 7
- Suggestion: special glyphs/icons for syntax elements HOT 11
- Some syntax highlight styles got broken or failed to apply after VS 17.7.1 HOT 22
- Nested types were not properly displayed on C# Quick Info HOT 1
- Import Theme starts in random(?) folder HOT 2
- Bug:Some Bugs in the Super Quick Info(超级代码提升) HOT 1
- Codist crashes VS when mouse hovers over the namespace part of the QuickInfo HOT 14
- Bug: Super Quick Info 疊加顯示沒有底色 HOT 1
- Broken syntax highlighting with latest Codist and VS 17.9.0 Preview 1.1 HOT 4
- 有计划推出Jetbrains Rider版的Codist嘛? HOT 1
- Codist Beta 7.8 HOT 38
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codist.