Last post Jul 25, 2012 04:10 AM by SanjayRor
Nov 25, 2008 09:28 AM|Actuality|LINK
Why is it that sometimes "Go to Definition" properly takes me to the method, property or (or whatever it is)? Yet other times, it takes me to the "from metadata" definition. How can I tell Visual studio to consistently go to the actual definition, rather
than the metadata?
One time I had the proper file up in the tab and it still took me to metadata! Just wondering how you tame that.
Nov 25, 2008 10:17 AM|mmeisinger|LINK
the difference is between project reference and dll reference
when you make a reference via a project reference then visual studio has the ability to locate the actual file
when you make a reference via a dll then visual studio can only work with the signature of the class or methods
the only other time that metadata will appear is when you are working with different languages (C# vs VB.Net)
there is really no way to tame it...
hopefully this explains it
i just realized that we are also talking about an express version of visual studio which also applies some limitations to how you can navigate to other code
simply put... since web express cannot (or does not) support any other type of project other than web projects you are limited with what you can bring up
this all points back to my original point which is that you are more than likely making dll references which will always provide you with the metadata
hope that helps
Nov 25, 2008 04:27 PM|Actuality|LINK
Thanks! that makes sense now.
Jul 25, 2012 03:38 AM|SanjayRor|LINK
Thanks a lot sir . you saved my lot of time.
Jul 25, 2012 04:10 AM|SanjayRor|LINK
Sir I have to add .dll again and again of BussinessLayer or DataLayer classes if the code is change.
When I go to defination of class I always find old mehod there. I have to add reference again and again to reflect new code pleaes help me.