VS 2013 Find all links not working in cshtml Pages

I have a C # webpage (Razor) application and I migrated it to VS 2013 Community Edition Update 4

Previously, when I wanted to see where a variable or function / links were used, I used the Find ALl References tool (Shift + F12) and I would get a list of each case and where it was found (page and line) .;

Now I find that the only time I can find "Find all links for work" is on the cshtml page in the App_Code folder. It does nothing on the pages in the top-level project folder (i.e., on the pages that make up the bulk of my site). I select the variable and press Shift + F12 (or click "Find All Links" in the right-click menu) and nothing happens: there is no clock glass, no flicker, no list of links (even if the page is riddled with links to the selected variable).

Are there any settings or something that can make this useful function work on cshtml pages in the top-level project folder, as it happens on pages in the App_Code folder?

+6
source share
1 answer

Visual Studio 2013 seems to be missing this feature. I can’t say if Visual Studio 2015 fixed this problem.

What am I doing:

  • Find all CTRL+SHIFT+F

  • Search for MyPublicMethod( or .MyPublicProperty

  • Search in file types: *.cshtml

The problem with this approach is: if you have duplicate properties in several classes ( name , url , ...), you will not be able to indicate which class the property belongs to without reading your code.

+2
source

Source: https://habr.com/ru/post/979885/


All Articles