Find All References Not Working in cshtml Pages
It seems that Visual Studio 2013 is lacking this feature. I cannot say if Visual Studio 2015 has fixed this issue.
What I do:
-
Find all
CTRL+SHIFT+F
-
Search
MyPublicMethod(
or.MyPublicProperty
-
Search in file types:
*.cshtml
Problem with this approach: if you have duplicated properties in multiple classes (name
, url
, ...) you will not be able to tell to what class the property belongs without reading your code.
我的策略是
I search in all *.cshtml with regex like this @.*.MemberEmail