Find All References Not Working in cshtml Pages

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

 

 

posted @ 2021-08-27 13:27  ChuckLu  阅读(32)  评论(0编辑  收藏  举报