我没有安装 Resharper .. 我想查看所有继承自的子类,IActionResult
并且show derived classes
在对象浏览器和类视图中没有类似的东西。
我尝试安装扩展程序TypeHierarchyViewer
( https://marketplace.visualstudio.com/items?itemName=munyabe.TypeHierarchyViewer ) 但它不起作用(即使使用示例List
,也只是空白)。
所以我该怎么做?
我经常使用这个功能使用eclipse开发java应用程序..VS2017中似乎没有开箱即用的工具,或者我只是错过了一些东西??
(Go To Implementation
表示该符号没有实现)
(在类视图中相同)
I have searched many "solutions"(like Visual Studio: How do I show all classes inherited from a base class?) but not work or need other tools(or just see the doc?).
I want to see if there anyway to do it just using VS.
Before I thought VS was a very good IDE but I can't image it lacks so much basic functions...(so there is Resharper...)
And I find there is derived types
but in Solution explorer
:
But you can't input the class you want And if I input IActionResult
in search box it will not find it(not in the my source and I don't implement it).
After trying..I find VS support it in solution explorer
...
But it's hard to use...
I need to find some classes or interface in my source code related to the class or interface I want and use derived type and implements to find the it..
It looks like:
(I find a class and navigate to object, it lists all classes .Then I find ActionResult and choose implements find IActionResult, finally I can see all derived classes above... ...)
emmmmm
it seems there is no direct way using VS(although I can get all sub classes using solution explorer but it's too verbose...) to get the result I want.
最后我选择使用 dotpeek(我不想购买 resharper,因为我只是研究 ASP.net 核心而不是为了工作)
我C:\Program Files\dotnet\sdk\NuGetFallbackFolder
在依赖项所在的 dotpeek 中打开。
然后使用Hierarchies
得到结果。
对VS有点失望。在我听到之前没有那么强烈。
谢谢你的帮助。:)
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句