简体   繁体   English

导航到Visual Studio 2013中代理“后面”的定义

[英]Navigate to definition “behind” a proxy in Visual Studio 2013

TL;DR; TL; DR;
I would like to know if theres a way to go to the "real" implementation of a method, instead of the "reference" of it. 我想知道是否有办法转到方法的“真正”实现,而不是它的“参考”。

Long Version 长版
So, for most of us, referencing a asmx/svc web-service is quite a common scenario. 因此,对于我们大多数人来说,引用asmx / svc Web服务是一种非常常见的情况。

When you do so, VS generates a proxy in the consuming project/s. 执行此操作时,VS会在使用项目中生成代理。

We also are usually developing both the client and the service, which put us more often than not in the scenario where you want to check some info about the service method implementation, but when you hit F12 , you're taken to the very useless VS generated code. 我们通常也在开发客户端和服务,这在我们想要查看有关服务方法实现的一些信息的场景中经常使用我们,但是当你点击F12时 ,你会被带到非常无用的VS.生成的代码。

I would like alter that behavior, and, instead of being referred to the auto-generated code I want the real implementation to show up. 我想改变这种行为,而不是被引用到自动生成的代码,我希望真正的实现显示出来。

You won't be able to achieve that in Visual Studio. 您将无法在Visual Studio中实现这一点。 But in ReSharper there is "Go to Implementation" command, or Ctrl + Shift + Alt + B . 但在ReSharper中有“Go to Implementation”命令,或者Ctrl + Shift + Alt + B.

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM