zl程序教程

您现在的位置是:首页 >  其它

当前栏目

Find All References Not Working in cshtml Pages

in not Find all Pages Working references
2023-09-11 14:14:17 时间

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