如何找到对程序集的依赖 [英] How to find a dependency on the assembly

查看:71
本文介绍了如何找到对程序集的依赖的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个大约有10个项目的解决方案,最近我在NHibernate上升级到了新版本,但是当我运行解决方案并收到消息时:找到的程序集的清单定义与程序集引用不匹配".因此,某些组件正在寻找旧版本.我尝试删除项目中对NH的所有引用,然后重新添加它们,删除所有bin等.我知道我可以在配置文件中重定向到新版本,但是所有项目都不应依赖于旧版本.那么有没有办法找出哪个dll依赖于旧版本?

I have a solution with about 10 projects, and I recently upgraded to new version on NHibernate, yet when I run solution and get the message: "The located assembly's manifest definition does not match the assembly reference". So some component is looking for old version. I tried removing all references in my project to NH, and re-adding them, deleting all bins etc. I know I can redirect in the config file to a new version, but none of the projects should be depending on the old version. So is there a way to find out which dll is dependent on an old version?

推荐答案

Reflector可以提供帮助-加载程序集并查看参考"下的条目.

Reflector can help with this - load the assembly and view the entries under "References".

这篇关于如何找到对程序集的依赖的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆