How to Remove Unused reference from a Project programmatically using R# APIs

I need to remove Unused Reference from my C# code.

I want to use resharper dll to do that for me.

 

But, can't figure out which dll to use and how to do that programmatically?

 

Please help.

Please sign in to leave a comment.