分析 .NET 应用程序中程序集依赖关系的好工具是什么
我知道有很多工具。我想找到一个好工具来告诉我缺少什么程序集。我遇到一个异常,说当我尝试运行 .NET 应用程序时,可能缺少一个依赖程序集。
更新
我想在实时服务器上测试它。因此,理想情况下,我可以在不更改服务器的情况下运行它。我可以在服务器上安装应用程序。
提前致谢。
I know there are many tools. I want to find out a good tool to show me what assembly is missing. I encountered an exception saying that one of the dependency assembly might be missing when I tried to run a .NET app.
UPDATE
I want to test it on live server. Thus, ideally, I can run it without changes to the server. I can install application on the server.
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
要检查运行时绑定错误,一种简单有效的方法是打开 Fusion 日志(只需在注册表中将 HKLM\Software\Microsoft\Fusion\ForceLog 更改为 1)。这将允许您检查 Exception.FusionLog 属性中错误的详细日志,并通过 程序集绑定日志查看器。
Scott Hanselman 有一篇关于这一点的很好的文章。
To check for runtime binding errors, one simple and efficient way is to turn on Fusion log (just change
HKLM\Software\Microsoft\Fusion\ForceLog
to 1 in the registry). This will allow you to check the detailed logs on the error in theException.FusionLog
property and also examine details via the Assembly Binding Log Viewer.Scott Hanselman has a good article on the point.
我曾经使用过Dependeny Walker,专门针对.NET的是装配依赖分析器
I once used Dependeny Walker, specifically for .NET is the Assembly Depenency Analyser
我会考虑使用点网反射器:
http://en.wikipedia.org/wiki/.NET_Reflector
或来自 jet Brains 的 Dot Peek:
http://www.jetbrains.com/decompiler/
I would look at using the Dot Net Reflector:
http://en.wikipedia.org/wiki/.NET_Reflector
Or Dot Peek from jet brains:
http://www.jetbrains.com/decompiler/