Is there a way to figure out what code is using an Assembly?
I have a Visual Studio project that is including a mystery dll (Microsoft.Contracts.dll) in my bin/Release folder when I build. This assembly isn't in my references folder, I have searched all of the DLLs I am using using reflector and none of those 开发者_StackOverflow社区are using it either. Is there some way I can determine what is using this assembly?
Try NDepend. It should show you which DLLs (including .NET ones, not just your own) have which dependencies.
The assembly Microsoft.Conctract.dll
is coming from Microsoft's Code Contracts.
Are you using those in your source code?
精彩评论