Reputation:
We have several library projects which are referenced as using statements like this:
Using XYZ.Controllers;
namespace test
{
Public partial class testing: System.Web.UI.Page
//...
Private void aTest()
{
string Fred=AController.GetAName();
}
//...
}
The controller AController would be created in another project (XYZ) which is referenced from this project as above. What I would like to able to do is to identify which routines in the XYZ project are no longer in use. (because code changed, new requirements etc).
Does anyone know of a way of finding out which functions are called and or which are not?
Simon
Upvotes: 1
Views: 162
Reputation: 176259
Ok, the following is not straight-forward, but quite simple and should give good results:
Upvotes: 0
Reputation: 12492
ReSharper can do this, if you are willing to pay.
FxCop will do it for compiled code. This is a free utility.
Upvotes: 3