Find “Dead code”

后端 未结 2 567
忘掉有多难
忘掉有多难 2021-02-10 23:05

I am trying to find private methods that are not called from any other code (CA1811) https://msdn.microsoft.com/en-us/library/ms182264(v=vs.110).aspx, with Visual Studio 2012 Co

2条回答
  •  情话喂你
    2021-02-10 23:47

    In case you are OK with a command line utility, I suggest the Resharper Command Line tool. It can do many great things that will help you, including finding dead code. It's free (Resharper VS extension is not) so it will get you going.

    If Resharper can't find any dead code, maybe there's none and Code Analysis does work :-)

提交回复
热议问题