How does Resharper determine what references are needed in optimize references?

I ran optimize references on our project and it found things that are not used.  But it also marked glimpse.dll's as not used.  Technically they are not, just in the web.config. Which I'm guessing it does not parse.  Thing I'm concerned about is something that is needed is removed.  But it can still compile.  In my case I think my local dev environment was a bit wonky and coinincidently I blamed R#.  I'm going to test it again, but just curious.  

1 comment
Comment actions Permalink

Hello Nick
     ReSharper tries to find any direct or indirect references to an assembly. In case there are no such references, it considers the assembly as unused. After removing such reference, your application should compile and run normally. If your application doesn't run properly after removing such reference, then this is a bug and we'd like to know about it. Thank you!

Andrey Serebryansky

Senior Support Engineer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

0

Please sign in to leave a comment.